/** * If not already created, a new <code>config-property</code> element will be created and returned. * Otherwise, the first existing <code>config-property</code> element will be returned. * @return the instance defined for the element <code>config-property</code> */ public ConfigPropertyType<IronjacamarDescriptor> getOrCreateConfigProperty() { List<Node> nodeList = model.get("config-property"); if (nodeList != null && nodeList.size() > 0) { return new ConfigPropertyTypeImpl<IronjacamarDescriptor>(this, "config-property", model, nodeList.get(0)); } return createConfigProperty(); }
/** * If not already created, a new <code>config-property</code> element will be created and returned. * Otherwise, the first existing <code>config-property</code> element will be returned. * @return the instance defined for the element <code>config-property</code> */ public ConfigPropertyType<IronjacamarDescriptor> getOrCreateConfigProperty() { List<Node> nodeList = model.get("config-property"); if (nodeList != null && nodeList.size() > 0) { return new ConfigPropertyTypeImpl<IronjacamarDescriptor>(this, "config-property", model, nodeList.get(0)); } return createConfigProperty(); }