/** * If not already created, a new <code>dependencies</code> element with the given value will be created. * Otherwise, the existing <code>dependencies</code> element will be returned. * @return a new or existing instance of <code>DependenciesType<ModuleDescriptor></code> */ public DependenciesType<ModuleDescriptor> getOrCreateDependencies() { Node node = model.getOrCreate("dependencies"); DependenciesType<ModuleDescriptor> dependencies = new DependenciesTypeImpl<ModuleDescriptor>(this, "dependencies", model, node); return dependencies; }
/** * 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(); }
/** * If not already created, a new <code>module</code> element will be created and returned. * Otherwise, the first existing <code>module</code> element will be returned. * @return the instance defined for the element <code>module</code> */ public ModuleDependencyType<DependenciesType<T>> getOrCreateModule() { List<Node> nodeList = childNode.get("module"); if (nodeList != null && nodeList.size() > 0) { return new ModuleDependencyTypeImpl<DependenciesType<T>>(this, "module", childNode, nodeList.get(0)); } return createModule(); }
/** * If not already created, a new <code>dependencies</code> element with the given value will be created. * Otherwise, the existing <code>dependencies</code> element will be returned. * @return a new or existing instance of <code>DependenciesType<ModuleType<T>></code> */ public DependenciesType<ModuleType<T>> getOrCreateDependencies() { Node node = childNode.getOrCreate("dependencies"); DependenciesType<ModuleType<T>> dependencies = new DependenciesTypeImpl<ModuleType<T>>(this, "dependencies", childNode, node); return dependencies; }