return obj;
}
public void marshal(RegistryObject object,Element parent)
{
TModel tModel = (TModel)object;
String generic = getGeneric(null);
String namespace = getUDDINamespace(generic);
Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);
AbstractHandler handler = null;
String tModelKey = tModel.getTModelKey();
if (tModelKey != null)
element.setAttribute("tModelKey",tModelKey);
else
element.setAttribute("tModelKey","");
String operator = tModel.getOperator();
if (operator != null)
element.setAttribute("operator",operator);
String authName = tModel.getAuthorizedName();
if (authName != null)
element.setAttribute("authorizedName",authName);
Name name = tModel.getName();
if (name != null)
{
handler = maker.lookup(NameHandler.TAG_NAME);
handler.marshal(name,element);
}
Vector descrVector = tModel.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);
}
OverviewDoc overDoc = tModel.getOverviewDoc();
if (overDoc != null)
{
handler = maker.lookup(OverviewDocHandler.TAG_NAME);
handler.marshal(overDoc,element);
}
IdentifierBag identifierBag = tModel.getIdentifierBag();
if ((identifierBag != null) && (identifierBag.getKeyedReferenceVector() != null) && (!identifierBag.getKeyedReferenceVector().isEmpty()))
{
handler = maker.lookup(IdentifierBagHandler.TAG_NAME);
handler.marshal(identifierBag,element);
}
CategoryBag categoryBag = tModel.getCategoryBag();
if ((categoryBag != null) && (categoryBag.getKeyedReferenceVector() != null) && (!categoryBag.getKeyedReferenceVector().isEmpty()))
{
handler = maker.lookup(CategoryBagHandler.TAG_NAME);
handler.marshal(categoryBag,element);
}