return obj;
}
public void marshal(RegistryObject object,Element parent)
{
PublisherDetail detail = (PublisherDetail)object;
Element element = parent.getOwnerDocument().createElementNS(null,TAG_NAME);
AbstractHandler handler = null;
String generic = detail.getGeneric();
if (generic != null)
{
element.setAttribute("generic",generic);
element.setAttribute("xmlns",IRegistry.JUDDI_V1_NAMESPACE);
}
else
element.setAttribute("generic","");
String operator = detail.getOperator();
if (operator != null)
element.setAttribute("operator",operator);
else
element.setAttribute("operator","");
boolean truncated = detail.isTruncated();
if (truncated)
element.setAttribute("truncated","true");
Vector vector = detail.getPublisherVector();
if ((vector!=null) && (vector.size() > 0))
{
handler = maker.lookup(PublisherHandler.TAG_NAME);
for (int i=0; i < vector.size(); i++)
handler.marshal((Publisher)vector.elementAt(i),element);