return obj;
}
public void marshal(RegistryObject object,Element parent)
{
BusinessInfo info = (BusinessInfo)object;
Element element = parent.getOwnerDocument().createElement(TAG_NAME);
AbstractHandler handler = null;
String businessKey = info.getBusinessKey();
if (businessKey != null)
element.setAttribute("businessKey",businessKey);
Vector nameVector = info.getNameVector();
if ((nameVector!=null) && (nameVector.size() > 0))
{
handler = maker.lookup(NameHandler.TAG_NAME);
for (int i=0; i < nameVector.size(); i++)
handler.marshal((org.apache.juddi.datatype.Name)nameVector.elementAt(i),element);
}
Vector descVector = info.getDescriptionVector();
if ((descVector!=null) && (descVector.size() > 0))
{
handler = maker.lookup(DescriptionHandler.TAG_NAME);
for (int i=0; i < descVector.size(); i++)
handler.marshal((Description)descVector.elementAt(i),element);
}
ServiceInfos infos = info.getServiceInfos();
if (infos != null)
{
handler = maker.lookup(ServiceInfosHandler.TAG_NAME);
handler.marshal(infos,element);
}