this.maker = maker;
}
public RegistryObject unmarshal(Element element)
{
BindingTemplate obj = new BindingTemplate();
Vector nodeList = null;
AbstractHandler handler = null;
// Attributes
obj.setServiceKey(element.getAttribute("serviceKey"));
obj.setBindingKey(element.getAttribute("bindingKey"));
// Text Node Value
// {none}
// Child Elements
nodeList = XMLUtils.getChildElementsByTagName(element,DescriptionHandler.TAG_NAME);
for (int i=0; i<nodeList.size(); i++)
{
handler = maker.lookup(DescriptionHandler.TAG_NAME);
Description descr = (Description)handler.unmarshal((Element)nodeList.elementAt(i));
if (descr != null)
obj.addDescription(descr);
}
nodeList = XMLUtils.getChildElementsByTagName(element,AccessPointHandler.TAG_NAME);
if (nodeList.size() > 0)
{
handler = maker.lookup(AccessPointHandler.TAG_NAME);
obj.setAccessPoint((AccessPoint)handler.unmarshal((Element)nodeList.elementAt(0)));
}
nodeList = XMLUtils.getChildElementsByTagName(element,HostingRedirectorHandler.TAG_NAME);
if (nodeList.size() > 0)
{
handler = maker.lookup(HostingRedirectorHandler.TAG_NAME);
obj.setHostingRedirector((HostingRedirector)handler.unmarshal((Element)nodeList.elementAt(0)));
}
nodeList = XMLUtils.getChildElementsByTagName(element,TModelInstanceDetailsHandler.TAG_NAME);
if (nodeList.size() > 0)
{
handler = maker.lookup(TModelInstanceDetailsHandler.TAG_NAME);
obj.setTModelInstanceDetails((TModelInstanceDetails)handler.unmarshal((Element)nodeList.elementAt(0)));
}
// TODO (UDDI v3) This code should be uncommented when jUDDI is ready to support UDDI v3.0
// nodeList = XMLUtils.getChildElementsByTagName(element,CategoryBagHandler.TAG_NAME); // UDDI v3.0
// if (nodeList.size() > 0)