65666768697071727374
for (MetadataCategory rec : metadataCategories) { String name = rec.getName(); String label = rec.getLabel(context.getLanguage()); res.addSet(new SetInfo(name, label)); } return res; }
354355356357358359360361362363364365366367368369
//--- build response while (res.hasNext()) { SetInfo si = res.next(); Element el = new Element("set"); el.addContent(new Element("name") .setText(si.getSpec())); el.addContent(new Element("label").setText(si.getName())); root.addContent(el); } } catch(NoSetHierarchyException e)
101102103104105106107
//--- //--------------------------------------------------------------------------- protected Object createObject(Element object) { return new SetInfo(object); }