/** * Creates a new <code>exclude</code> element * @return the new created instance of <code>PathSpecType<FilterType<T>></code> */ public PathSpecType<FilterType<T>> createExclude() { return new PathSpecTypeImpl<FilterType<T>>(this, "exclude", childNode); }
/** * Creates a new <code>include</code> element * @return the new created instance of <code>PathSpecType<FilterType<T>></code> */ public PathSpecType<FilterType<T>> createInclude() { return new PathSpecTypeImpl<FilterType<T>>(this, "include", childNode); }
/** * Returns all <code>exclude</code> elements * @return list of <code>exclude</code> */ public List<PathSpecType<FilterType<T>>> getAllExclude() { List<PathSpecType<FilterType<T>>> list = new ArrayList<PathSpecType<FilterType<T>>>(); List<Node> nodeList = childNode.get("exclude"); for(Node node: nodeList) { PathSpecType<FilterType<T>> type = new PathSpecTypeImpl<FilterType<T>>(this, "exclude", childNode, node); list.add(type); } return list; }
/** * Returns all <code>include</code> elements * @return list of <code>include</code> */ public List<PathSpecType<FilterType<T>>> getAllInclude() { List<PathSpecType<FilterType<T>>> list = new ArrayList<PathSpecType<FilterType<T>>>(); List<Node> nodeList = childNode.get("include"); for(Node node: nodeList) { PathSpecType<FilterType<T>> type = new PathSpecTypeImpl<FilterType<T>>(this, "include", childNode, node); list.add(type); } return list; }
/** * If not already created, a new <code>include</code> element will be created and returned. * Otherwise, the first existing <code>include</code> element will be returned. * @return the instance defined for the element <code>include</code> */ public PathSpecType<FilterType<T>> getOrCreateInclude() { List<Node> nodeList = childNode.get("include"); if (nodeList != null && nodeList.size() > 0) { return new PathSpecTypeImpl<FilterType<T>>(this, "include", childNode, nodeList.get(0)); } return createInclude(); }
/** * If not already created, a new <code>exclude</code> element will be created and returned. * Otherwise, the first existing <code>exclude</code> element will be returned. * @return the instance defined for the element <code>exclude</code> */ public PathSpecType<FilterType<T>> getOrCreateExclude() { List<Node> nodeList = childNode.get("exclude"); if (nodeList != null && nodeList.size() > 0) { return new PathSpecTypeImpl<FilterType<T>>(this, "exclude", childNode, nodeList.get(0)); } return createExclude(); }