/** * If not already created, a new <code>xa-datasource-property</code> element will be created and returned. * Otherwise, the first existing <code>xa-datasource-property</code> element will be returned. * @return the instance defined for the element <code>xa-datasource-property</code> */ public XaDatasourcePropertyType<XaDatasourceType<T>> getOrCreateXaDatasourceProperty() { List<Node> nodeList = childNode.get("xa-datasource-property"); if (nodeList != null && nodeList.size() > 0) { return new XaDatasourcePropertyTypeImpl<XaDatasourceType<T>>(this, "xa-datasource-property", childNode, nodeList.get(0)); } return createXaDatasourceProperty(); }
/** * If not already created, a new <code>xa-datasource-property</code> element will be created and returned. * Otherwise, the first existing <code>xa-datasource-property</code> element will be returned. * @return the instance defined for the element <code>xa-datasource-property</code> */ public XaDatasourcePropertyType<XaDatasourceType<T>> getOrCreateXaDatasourceProperty() { List<Node> nodeList = childNode.get("xa-datasource-property"); if (nodeList != null && nodeList.size() > 0) { return new XaDatasourcePropertyTypeImpl<XaDatasourceType<T>>(this, "xa-datasource-property", childNode, nodeList.get(0)); } return createXaDatasourceProperty(); }