/**
*
*/
public void marshal(RegistryObject object,Element parent)
{
RelatedBusinessInfo info = (RelatedBusinessInfo)object;
String generic = getGeneric(null);
String namespace = getUDDINamespace(generic);
Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);
AbstractHandler handler = null;
String businessKey = info.getBusinessKey();
if (businessKey != null)
{
handler = maker.lookup(BusinessKeyHandler.TAG_NAME);
handler.marshal(new BusinessKey(businessKey),element);
}
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);
}
SharedRelationships relationships = info.getSharedRelationships();
if (relationships != null)
{
handler = maker.lookup(SharedRelationshipsHandler.TAG_NAME);
handler.marshal(relationships,element);
}