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