/** * If not already created, a new <code>users</code> element with the given value will be created. * Otherwise, the existing <code>users</code> element will be returned. * @return a new or existing instance of <code>WorkmanagerSecurityMappingsUsersType<WorkmanagerSecurityMappingsType<T>></code> */ public WorkmanagerSecurityMappingsUsersType<WorkmanagerSecurityMappingsType<T>> getOrCreateUsers() { Node node = childNode.getOrCreate("users"); WorkmanagerSecurityMappingsUsersType<WorkmanagerSecurityMappingsType<T>> users = new WorkmanagerSecurityMappingsUsersTypeImpl<WorkmanagerSecurityMappingsType<T>>(this, "users", childNode, node); return users; }
/** * If not already created, a new <code>map</code> element will be created and returned. * Otherwise, the first existing <code>map</code> element will be returned. * @return the instance defined for the element <code>map</code> */ public WorkmanagerSecurityMappingType<WorkmanagerSecurityMappingsUsersType<T>> getOrCreateMap() { List<Node> nodeList = childNode.get("map"); if (nodeList != null && nodeList.size() > 0) { return new WorkmanagerSecurityMappingTypeImpl<WorkmanagerSecurityMappingsUsersType<T>>(this, "map", childNode, nodeList.get(0)); } return createMap(); }
/** * If not already created, a new <code>map</code> element will be created and returned. * Otherwise, the first existing <code>map</code> element will be returned. * @return the instance defined for the element <code>map</code> */ public WorkmanagerSecurityMappingType<WorkmanagerSecurityMappingsUsersType<T>> getOrCreateMap() { List<Node> nodeList = childNode.get("map"); if (nodeList != null && nodeList.size() > 0) { return new WorkmanagerSecurityMappingTypeImpl<WorkmanagerSecurityMappingsUsersType<T>>(this, "map", childNode, nodeList.get(0)); } return createMap(); }
/** * If not already created, a new <code>users</code> element with the given value will be created. * Otherwise, the existing <code>users</code> element will be returned. * @return a new or existing instance of <code>WorkmanagerSecurityMappingsUsersType<WorkmanagerSecurityMappingsType<T>></code> */ public WorkmanagerSecurityMappingsUsersType<WorkmanagerSecurityMappingsType<T>> getOrCreateUsers() { Node node = childNode.getOrCreate("users"); WorkmanagerSecurityMappingsUsersType<WorkmanagerSecurityMappingsType<T>> users = new WorkmanagerSecurityMappingsUsersTypeImpl<WorkmanagerSecurityMappingsType<T>>(this, "users", childNode, node); return users; }