/** * Creates a new <code>path</code> element * @return the new created instance of <code>PathType<PathSetType<T>></code> */ public PathType<PathSetType<T>> createPath() { return new PathTypeImpl<PathSetType<T>>(this, "path", childNode); }
/** * Returns all <code>path</code> elements * @return list of <code>path</code> */ public List<PathType<PathSetType<T>>> getAllPath() { List<PathType<PathSetType<T>>> list = new ArrayList<PathType<PathSetType<T>>>(); List<Node> nodeList = childNode.get("path"); for(Node node: nodeList) { PathType<PathSetType<T>> type = new PathTypeImpl<PathSetType<T>>(this, "path", childNode, node); list.add(type); } return list; }
/** * If not already created, a new <code>path</code> element will be created and returned. * Otherwise, the first existing <code>path</code> element will be returned. * @return the instance defined for the element <code>path</code> */ public PathType<PathSetType<T>> getOrCreatePath() { List<Node> nodeList = childNode.get("path"); if (nodeList != null && nodeList.size() > 0) { return new PathTypeImpl<PathSetType<T>>(this, "path", childNode, nodeList.get(0)); } return createPath(); }