/** * Create a new <b>collection</b> element for the binding. This initializes the create and declared types of the * collection as appropriate, along with the wrapper name and optional status. * * @param wrapname name to be used for wrapper collection or structure, <code>null</code> if none * @param wrapopt wrapper element optional flag (should be <code>false</code> if wrapname is <code>null</code>) * @param holder binding definition tracking information * @param node data node associated with collection * @return collection element */ private CollectionElement newCollection(QName wrapname, boolean wrapopt, BindingHolder holder, DataNode node) { CollectionElement collect = new CollectionElement(); int reptype = getSchemaCustom().getRepeatType(); boolean list = reptype == SchemaRootBase.REPEAT_LIST || reptype == SchemaRootBase.REPEAT_TYPED; if (list) { collect.setCreateType(m_listImplClass); } if (wrapname == null) { if (node.isOptional()) { collect.setUsage(PropertyAttributes.OPTIONAL_USAGE); } } else { setName(wrapname, holder, collect); if (wrapopt) { collect.setUsage(PropertyAttributes.OPTIONAL_USAGE); } } return collect; }
CollectionElement coll = new CollectionElement(); m_bindingGenerator.defineCollection(itype, value.getItemName(), coll, bind); mapping.addChild(coll);
CollectionElement coll = new CollectionElement(); if (memb.getFieldName() == null) { coll.setGetName(gmeth);
(StructureElementBase)new CollectionElement() : (StructureElementBase)new StructureElement(); String mapper; switch (anytype) {