/** * If not already created, a new <code>locale-encoding-mapping-list</code> element will be created and returned. * Otherwise, the first existing <code>locale-encoding-mapping-list</code> element will be returned. * @return the instance defined for the element <code>locale-encoding-mapping-list</code> */ public LocaleEncodingMappingListType<WebAppDescriptor> getOrCreateLocaleEncodingMappingList() { List<Node> nodeList = model.get("locale-encoding-mapping-list"); if (nodeList != null && nodeList.size() > 0) { return new LocaleEncodingMappingListTypeImpl<WebAppDescriptor>(this, "locale-encoding-mapping-list", model, nodeList.get(0)); } return createLocaleEncodingMappingList(); }
/** * If not already created, a new <code>locale-encoding-mapping-list</code> element will be created and returned. * Otherwise, the first existing <code>locale-encoding-mapping-list</code> element will be returned. * @return the instance defined for the element <code>locale-encoding-mapping-list</code> */ public LocaleEncodingMappingListType<WebAppDescriptor> getOrCreateLocaleEncodingMappingList() { List<Node> nodeList = model.get("locale-encoding-mapping-list"); if (nodeList != null && nodeList.size() > 0) { return new LocaleEncodingMappingListTypeImpl<WebAppDescriptor>(this, "locale-encoding-mapping-list", model, nodeList.get(0)); } return createLocaleEncodingMappingList(); }