return obj;
}
public void marshal(RegistryObject object,Element parent)
{
BusinessService service = (BusinessService)object;
Element element = parent.getOwnerDocument().createElementNS(null,TAG_NAME);
AbstractHandler handler = null;
String serviceKey = service.getServiceKey();
if (serviceKey != null)
element.setAttribute("serviceKey",serviceKey);
else
element.setAttribute("serviceKey","");
String businessKey = service.getBusinessKey();
if (businessKey != null)
element.setAttribute("businessKey",businessKey);
Vector nameVector = service.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);
}
Vector descrVector = service.getDescriptionVector();
if ((descrVector!=null) && (descrVector.size() > 0))
{
handler = maker.lookup(DescriptionHandler.TAG_NAME);
for (int i=0; i < descrVector.size(); i++)
handler.marshal((Description)descrVector.elementAt(i),element);
}
BindingTemplates bindings = service.getBindingTemplates();
if (bindings != null)
{
handler = maker.lookup(BindingTemplatesHandler.TAG_NAME);
handler.marshal(bindings,element);
}
CategoryBag categoryBag = service.getCategoryBag();
if ((categoryBag != null) && (categoryBag.getKeyedReferenceVector() != null) && (!categoryBag.getKeyedReferenceVector().isEmpty()))
{
handler = maker.lookup(CategoryBagHandler.TAG_NAME);
handler.marshal(categoryBag,element);
}