/** * If not already created, a new <code>imports</code> element with the given value will be created. * Otherwise, the existing <code>imports</code> element will be returned. * @return a new or existing instance of <code>FilterType<ModuleDependencyType<T>></code> */ public FilterType<ModuleDependencyType<T>> getOrCreateImports() { Node node = childNode.getOrCreate("imports"); FilterType<ModuleDependencyType<T>> imports = new FilterTypeImpl<ModuleDependencyType<T>>(this, "imports", childNode, node); return imports; }
/** * If not already created, a new <code>include-set</code> element will be created and returned. * Otherwise, the first existing <code>include-set</code> element will be returned. * @return the instance defined for the element <code>include-set</code> */ public PathSetType<FilterType<T>> getOrCreateIncludeSet() { List<Node> nodeList = childNode.get("include-set"); if (nodeList != null && nodeList.size() > 0) { return new PathSetTypeImpl<FilterType<T>>(this, "include-set", childNode, nodeList.get(0)); } return createIncludeSet(); }
/** * If not already created, a new <code>exclude-set</code> element will be created and returned. * Otherwise, the first existing <code>exclude-set</code> element will be returned. * @return the instance defined for the element <code>exclude-set</code> */ public PathSetType<FilterType<T>> getOrCreateExcludeSet() { List<Node> nodeList = childNode.get("exclude-set"); if (nodeList != null && nodeList.size() > 0) { return new PathSetTypeImpl<FilterType<T>>(this, "exclude-set", childNode, nodeList.get(0)); } return createExcludeSet(); }
/** * 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(); }
/** * If not already created, a new <code>exports</code> element with the given value will be created. * Otherwise, the existing <code>exports</code> element will be returned. * @return a new or existing instance of <code>FilterType<ModuleType<T>></code> */ public FilterType<ModuleType<T>> getOrCreateExports() { Node node = childNode.getOrCreate("exports"); FilterType<ModuleType<T>> exports = new FilterTypeImpl<ModuleType<T>>(this, "exports", childNode, node); return exports; }
/** * If not already created, a new <code>exports</code> element with the given value will be created. * Otherwise, the existing <code>exports</code> element will be returned. * @return a new or existing instance of <code>FilterType<ModuleDescriptor></code> */ public FilterType<ModuleDescriptor> getOrCreateExports() { Node node = model.getOrCreate("exports"); FilterType<ModuleDescriptor> exports = new FilterTypeImpl<ModuleDescriptor>(this, "exports", model, node); return exports; }
/** * If not already created, a new <code>filter</code> element with the given value will be created. * Otherwise, the existing <code>filter</code> element will be returned. * @return a new or existing instance of <code>FilterType<ResourceType<T>></code> */ public FilterType<ResourceType<T>> getOrCreateFilter() { Node node = childNode.getOrCreate("filter"); FilterType<ResourceType<T>> filter = new FilterTypeImpl<ResourceType<T>>(this, "filter", childNode, node); return filter; }
/** * If not already created, a new <code>exports</code> element with the given value will be created. * Otherwise, the existing <code>exports</code> element will be returned. * @return a new or existing instance of <code>FilterType<SystemDependencyType<T>></code> */ public FilterType<SystemDependencyType<T>> getOrCreateExports() { Node node = childNode.getOrCreate("exports"); FilterType<SystemDependencyType<T>> exports = new FilterTypeImpl<SystemDependencyType<T>>(this, "exports", childNode, node); return exports; }
/** * If not already created, a new <code>exports</code> element with the given value will be created. * Otherwise, the existing <code>exports</code> element will be returned. * @return a new or existing instance of <code>FilterType<ModuleDependencyType<T>></code> */ public FilterType<ModuleDependencyType<T>> getOrCreateExports() { Node node = childNode.getOrCreate("exports"); FilterType<ModuleDependencyType<T>> exports = new FilterTypeImpl<ModuleDependencyType<T>>(this, "exports", childNode, node); return exports; }