private Element writeCatalogRef(InvCatalogRef catRef) { Element catrefElem = new Element("catalogRef", defNS); catrefElem.setAttribute("href", catRef.getXlinkHref(), xlinkNS); String name = catRef.getName() == null ? "" : catRef.getName(); catrefElem.setAttribute("title", name, xlinkNS); if (catRef.getID() != null) catrefElem.setAttribute("ID", catRef.getID()); if (catRef.getRestrictAccess() != null) catrefElem.setAttribute("restrictAccess", catRef.getRestrictAccess()); catrefElem.setAttribute("name", ""); /* List list = catRef.getDocumentation(); for (int j=0; j< list.size(); j++) { InvDocumentation doc = (InvDocumentation) list.get(j); catrefElem.addContent( writeDocumentation(doc, "documentation")); } */ return catrefElem; }
private Element writeCatalogRef( InvCatalogRef catRef) { Element catrefElem = new Element("catalogRef", defNS); catrefElem.setAttribute("href", catRef.getXlinkHref(), xlinkNS); String name = catRef.getName() == null ? "" : catRef.getName(); catrefElem.setAttribute("title", name, xlinkNS); if ( catRef.getID() != null ) catrefElem.setAttribute("ID", catRef.getID() ); if (catRef.getRestrictAccess() != null) catrefElem.setAttribute("restrictAccess", catRef.getRestrictAccess()); catrefElem.setAttribute("name", ""); /* List list = catRef.getDocumentation(); for (int j=0; j< list.size(); j++) { InvDocumentation doc = (InvDocumentation) list.get(j); catrefElem.addContent( writeDocumentation(doc, "documentation")); } */ return catrefElem; }
private Element writeCatalogRef(InvCatalogRef catRef) { Element catrefElem = new Element("catalogRef", defNS); catrefElem.setAttribute("href", catRef.getXlinkHref(), xlinkNS); String name = catRef.getName() == null ? "" : catRef.getName(); catrefElem.setAttribute("title", name, xlinkNS); if (catRef.getID() != null) catrefElem.setAttribute("ID", catRef.getID()); if (catRef.getRestrictAccess() != null) catrefElem.setAttribute("restrictAccess", catRef.getRestrictAccess()); catrefElem.setAttribute("name", ""); /* List list = catRef.getDocumentation(); for (int j=0; j< list.size(); j++) { InvDocumentation doc = (InvDocumentation) list.get(j); catrefElem.addContent( writeDocumentation(doc, "documentation")); } */ return catrefElem; }