return obj;
}
public void marshal(RegistryObject object,Element parent)
{
PublisherAssertions assertions = (PublisherAssertions)object;
Element element = parent.getOwnerDocument().createElementNS(null,TAG_NAME);
AbstractHandler handler = null;
String generic = assertions.getGeneric();
if ((generic != null) && (generic.trim().length() > 0))
{
element.setAttribute("generic",generic);
if (generic.equals(IRegistry.UDDI_V1_GENERIC))
element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
else if (generic.equals(IRegistry.UDDI_V2_GENERIC))
element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
else if (generic.equals(IRegistry.UDDI_V3_GENERIC))
element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
}
else // Default to UDDI v2 values
{
element.setAttribute("generic",IRegistry.UDDI_V2_GENERIC);
element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
}
String operator = assertions.getOperator();
if (operator != null)
element.setAttribute("operator",operator);
else
element.setAttribute("operator","");
Vector vector = assertions.getPublisherAssertionVector();
if ((vector!=null) && (vector.size() > 0))
{
handler = maker.lookup(PublisherAssertionHandler.TAG_NAME);
for (int i=0; i < vector.size(); i++)
handler.marshal((PublisherAssertion)vector.elementAt(i),element);