this.maker = maker;
}
public RegistryObject unmarshal(Element element)
{
BusinessService obj = new BusinessService();
Vector nodeList = null;
AbstractHandler handler = null;
// Attributes
obj.setBusinessKey(element.getAttribute("businessKey"));
obj.setServiceKey(element.getAttribute("serviceKey"));
// Text Node Value
// {none}
// Child Elements
nodeList = XMLUtils.getChildElementsByTagName(element,NameHandler.TAG_NAME);
for (int i=0; i<nodeList.size(); i++)
{
handler = maker.lookup(NameHandler.TAG_NAME);
obj.addName((Name)handler.unmarshal((Element)nodeList.elementAt(i)));
}
nodeList = XMLUtils.getChildElementsByTagName(element,DescriptionHandler.TAG_NAME);
for (int i=0; i<nodeList.size(); i++)
{
handler = maker.lookup(DescriptionHandler.TAG_NAME);
obj.addDescription((Description)handler.unmarshal((Element)nodeList.elementAt(i)));
}
nodeList = XMLUtils.getChildElementsByTagName(element,BindingTemplatesHandler.TAG_NAME);
if (nodeList.size() > 0)
{
handler = maker.lookup(BindingTemplatesHandler.TAG_NAME);
obj.setBindingTemplates((BindingTemplates)handler.unmarshal((Element)nodeList.elementAt(0)));
}
nodeList = XMLUtils.getChildElementsByTagName(element,CategoryBagHandler.TAG_NAME);
if (nodeList.size() > 0)
{
handler = maker.lookup(CategoryBagHandler.TAG_NAME);
obj.setCategoryBag((CategoryBag)handler.unmarshal((Element)nodeList.elementAt(0)));
}
return obj;
}