/** * If not already created, a new <code>connection-property</code> element will be created and returned. * Otherwise, the first existing <code>connection-property</code> element will be returned. * @return the instance defined for the element <code>connection-property</code> */ public ConnectionPropertyType<DatasourceType<T>> getOrCreateConnectionProperty() { List<Node> nodeList = childNode.get("connection-property"); if (nodeList != null && nodeList.size() > 0) { return new ConnectionPropertyTypeImpl<DatasourceType<T>>(this, "connection-property", childNode, nodeList.get(0)); } return createConnectionProperty(); }
/** * If not already created, a new <code>connection-property</code> element will be created and returned. * Otherwise, the first existing <code>connection-property</code> element will be returned. * @return the instance defined for the element <code>connection-property</code> */ public ConnectionPropertyType<DatasourceType<T>> getOrCreateConnectionProperty() { List<Node> nodeList = childNode.get("connection-property"); if (nodeList != null && nodeList.size() > 0) { return new ConnectionPropertyTypeImpl<DatasourceType<T>>(this, "connection-property", childNode, nodeList.get(0)); } return createConnectionProperty(); }