public void setSecurityAttributes(Map<String, SecurityAttribute> sa)
{
for (Map.Entry<String, SecurityAttribute> e : sa.entrySet())
{
SecurityAttribute attrib = e.getValue();
JSNVPElement element = new JSNVPElement(attrib.getName(), attrib.getStringValue());
element.setReadOnly(attrib.isReadOnly());
element.setAttribute("datatype",attrib.getDataType().name());
element.setAttribute("registered",Boolean.toString(attrib.isRegistered()));
element.setAttribute("required",Boolean.toString(attrib.isRequired()));
element.setAttribute("category",attrib.getCategory());
secAttrs.add(element);
}
}