/** * Creates a new <code>web-resource-collection</code> element * @return the new created instance of <code>WebResourceCollectionType<SecurityConstraintType<T>></code> */ public WebResourceCollectionType<SecurityConstraintType<T>> createWebResourceCollection() { return new WebResourceCollectionTypeImpl<SecurityConstraintType<T>>(this, "web-resource-collection", childNode); }
/** * Creates a new <code>web-resource-collection</code> element * @return the new created instance of <code>WebResourceCollectionType<SecurityConstraintType<T>></code> */ public WebResourceCollectionType<SecurityConstraintType<T>> createWebResourceCollection() { return new WebResourceCollectionTypeImpl<SecurityConstraintType<T>>(this, "web-resource-collection", childNode); }
/** * Returns all <code>web-resource-collection</code> elements * @return list of <code>web-resource-collection</code> */ public List<WebResourceCollectionType<SecurityConstraintType<T>>> getAllWebResourceCollection() { List<WebResourceCollectionType<SecurityConstraintType<T>>> list = new ArrayList<WebResourceCollectionType<SecurityConstraintType<T>>>(); List<Node> nodeList = childNode.get("web-resource-collection"); for(Node node: nodeList) { WebResourceCollectionType<SecurityConstraintType<T>> type = new WebResourceCollectionTypeImpl<SecurityConstraintType<T>>(this, "web-resource-collection", childNode, node); list.add(type); } return list; }
/** * Returns all <code>web-resource-collection</code> elements * @return list of <code>web-resource-collection</code> */ public List<WebResourceCollectionType<SecurityConstraintType<T>>> getAllWebResourceCollection() { List<WebResourceCollectionType<SecurityConstraintType<T>>> list = new ArrayList<WebResourceCollectionType<SecurityConstraintType<T>>>(); List<Node> nodeList = childNode.get("web-resource-collection"); for(Node node: nodeList) { WebResourceCollectionType<SecurityConstraintType<T>> type = new WebResourceCollectionTypeImpl<SecurityConstraintType<T>>(this, "web-resource-collection", childNode, node); list.add(type); } return list; }
/** * If not already created, a new <code>web-resource-collection</code> element will be created and returned. * Otherwise, the first existing <code>web-resource-collection</code> element will be returned. * @return the instance defined for the element <code>web-resource-collection</code> */ public WebResourceCollectionType<SecurityConstraintType<T>> getOrCreateWebResourceCollection() { List<Node> nodeList = childNode.get("web-resource-collection"); if (nodeList != null && nodeList.size() > 0) { return new WebResourceCollectionTypeImpl<SecurityConstraintType<T>>(this, "web-resource-collection", childNode, nodeList.get(0)); } return createWebResourceCollection(); }
/** * If not already created, a new <code>web-resource-collection</code> element will be created and returned. * Otherwise, the first existing <code>web-resource-collection</code> element will be returned. * @return the instance defined for the element <code>web-resource-collection</code> */ public WebResourceCollectionType<SecurityConstraintType<T>> getOrCreateWebResourceCollection() { List<Node> nodeList = childNode.get("web-resource-collection"); if (nodeList != null && nodeList.size() > 0) { return new WebResourceCollectionTypeImpl<SecurityConstraintType<T>>(this, "web-resource-collection", childNode, nodeList.get(0)); } return createWebResourceCollection(); }