/** * If not already created, a new <code>groups</code> element with the given value will be created. * Otherwise, the existing <code>groups</code> element will be returned. * @return a new or existing instance of <code>WorkmanagerSecurityMappingsGroupsType<WorkmanagerSecurityMappingsType<T>></code> */ public WorkmanagerSecurityMappingsGroupsType<WorkmanagerSecurityMappingsType<T>> getOrCreateGroups() { Node node = childNode.getOrCreate("groups"); WorkmanagerSecurityMappingsGroupsType<WorkmanagerSecurityMappingsType<T>> groups = new WorkmanagerSecurityMappingsGroupsTypeImpl<WorkmanagerSecurityMappingsType<T>>(this, "groups", childNode, node); return groups; }
/** * 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<WorkmanagerSecurityMappingsGroupsType<T>> getOrCreateMap() { List<Node> nodeList = childNode.get("map"); if (nodeList != null && nodeList.size() > 0) { return new WorkmanagerSecurityMappingTypeImpl<WorkmanagerSecurityMappingsGroupsType<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<WorkmanagerSecurityMappingsGroupsType<T>> getOrCreateMap() { List<Node> nodeList = childNode.get("map"); if (nodeList != null && nodeList.size() > 0) { return new WorkmanagerSecurityMappingTypeImpl<WorkmanagerSecurityMappingsGroupsType<T>>(this, "map", childNode, nodeList.get(0)); } return createMap(); }
/** * If not already created, a new <code>groups</code> element with the given value will be created. * Otherwise, the existing <code>groups</code> element will be returned. * @return a new or existing instance of <code>WorkmanagerSecurityMappingsGroupsType<WorkmanagerSecurityMappingsType<T>></code> */ public WorkmanagerSecurityMappingsGroupsType<WorkmanagerSecurityMappingsType<T>> getOrCreateGroups() { Node node = childNode.getOrCreate("groups"); WorkmanagerSecurityMappingsGroupsType<WorkmanagerSecurityMappingsType<T>> groups = new WorkmanagerSecurityMappingsGroupsTypeImpl<WorkmanagerSecurityMappingsType<T>>(this, "groups", childNode, node); return groups; }