return obj;
}
public void marshal(RegistryObject object,Element parent)
{
FindBusiness request = (FindBusiness)object;
String generic = request.getGeneric();
generic = getGeneric(generic);
String namespace = getUDDINamespace(generic);
Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);
AbstractHandler handler = null;
element.setAttribute("generic",generic);
int maxRows = request.getMaxRows();
if (maxRows > 0)
element.setAttribute("maxRows",String.valueOf(maxRows));
FindQualifiers qualifiers = request.getFindQualifiers();
if ((qualifiers != null) && (qualifiers.size() > 0))
{
handler = maker.lookup(FindQualifiersHandler.TAG_NAME);
handler.marshal(qualifiers,element);
}
Vector nameVector = request.getNameVector();
if ((nameVector!=null) && (nameVector.size() > 0))
{
handler = maker.lookup(NameHandler.TAG_NAME);
for (int i=0; i < nameVector.size(); i++)
handler.marshal((Name)nameVector.elementAt(i),element);
}
IdentifierBag idBag = request.getIdentifierBag();
if (idBag != null)
{
handler = maker.lookup(IdentifierBagHandler.TAG_NAME);
handler.marshal(idBag,element);
}
CategoryBag catBag = request.getCategoryBag();
if (catBag != null)
{
handler = maker.lookup(CategoryBagHandler.TAG_NAME);
handler.marshal(catBag,element);
}
TModelBag tModBag = request.getTModelBag();
if (tModBag != null)
{
handler = maker.lookup(TModelBagHandler.TAG_NAME);
handler.marshal(tModBag,element);
}
DiscoveryURLs discURLs = request.getDiscoveryURLs();
if (discURLs != null)
{
handler = maker.lookup(DiscoveryURLsHandler.TAG_NAME);
handler.marshal(discURLs,element);
}