/** * 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(); }