/** * If not already created, a new <code>admin-objects</code> element with the given value will be created. * Otherwise, the existing <code>admin-objects</code> element will be returned. * @return a new or existing instance of <code>AdminObjectsType<ResourceAdapterType<T>></code> */ public AdminObjectsType<ResourceAdapterType<T>> getOrCreateAdminObjects() { Node node = childNode.getOrCreate("admin-objects"); AdminObjectsType<ResourceAdapterType<T>> adminObjects = new AdminObjectsTypeImpl<ResourceAdapterType<T>>(this, "admin-objects", childNode, node); return adminObjects; }
/** * If not already created, a new <code>admin-object</code> element will be created and returned. * Otherwise, the first existing <code>admin-object</code> element will be returned. * @return the instance defined for the element <code>admin-object</code> */ public AdminObjectType<AdminObjectsType<T>> getOrCreateAdminObject() { List<Node> nodeList = childNode.get("admin-object"); if (nodeList != null && nodeList.size() > 0) { return new AdminObjectTypeImpl<AdminObjectsType<T>>(this, "admin-object", childNode, nodeList.get(0)); } return createAdminObject(); }
/** * If not already created, a new <code>admin-object</code> element will be created and returned. * Otherwise, the first existing <code>admin-object</code> element will be returned. * @return the instance defined for the element <code>admin-object</code> */ public AdminObjectType<AdminObjectsType<T>> getOrCreateAdminObject() { List<Node> nodeList = childNode.get("admin-object"); if (nodeList != null && nodeList.size() > 0) { return new AdminObjectTypeImpl<AdminObjectsType<T>>(this, "admin-object", childNode, nodeList.get(0)); } return createAdminObject(); }
/** * If not already created, a new <code>admin-objects</code> element with the given value will be created. * Otherwise, the existing <code>admin-objects</code> element will be returned. * @return a new or existing instance of <code>AdminObjectsType<ResourceAdapterType<T>></code> */ public AdminObjectsType<ResourceAdapterType<T>> getOrCreateAdminObjects() { Node node = childNode.getOrCreate("admin-objects"); AdminObjectsType<ResourceAdapterType<T>> adminObjects = new AdminObjectsTypeImpl<ResourceAdapterType<T>>(this, "admin-objects", childNode, node); return adminObjects; }