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