/** * Creates a new <code>native-artifact</code> element * @return the new created instance of <code>ArtifactType<ResourcesType<T>></code> */ public ArtifactType<ResourcesType<T>> createNativeArtifact() { return new ArtifactTypeImpl<ResourcesType<T>>(this, "native-artifact", childNode); }
/** * Creates a new <code>artifact</code> element * @return the new created instance of <code>ArtifactType<ResourcesType<T>></code> */ public ArtifactType<ResourcesType<T>> createArtifact() { return new ArtifactTypeImpl<ResourcesType<T>>(this, "artifact", childNode); }
/** * Returns all <code>artifact</code> elements * @return list of <code>artifact</code> */ public List<ArtifactType<ResourcesType<T>>> getAllArtifact() { List<ArtifactType<ResourcesType<T>>> list = new ArrayList<ArtifactType<ResourcesType<T>>>(); List<Node> nodeList = childNode.get("artifact"); for(Node node: nodeList) { ArtifactType<ResourcesType<T>> type = new ArtifactTypeImpl<ResourcesType<T>>(this, "artifact", childNode, node); list.add(type); } return list; }
/** * Returns all <code>native-artifact</code> elements * @return list of <code>native-artifact</code> */ public List<ArtifactType<ResourcesType<T>>> getAllNativeArtifact() { List<ArtifactType<ResourcesType<T>>> list = new ArrayList<ArtifactType<ResourcesType<T>>>(); List<Node> nodeList = childNode.get("native-artifact"); for(Node node: nodeList) { ArtifactType<ResourcesType<T>> type = new ArtifactTypeImpl<ResourcesType<T>>(this, "native-artifact", childNode, node); list.add(type); } return list; }
/** * If not already created, a new <code>artifact</code> element will be created and returned. * Otherwise, the first existing <code>artifact</code> element will be returned. * @return the instance defined for the element <code>artifact</code> */ public ArtifactType<ResourcesType<T>> getOrCreateArtifact() { List<Node> nodeList = childNode.get("artifact"); if (nodeList != null && nodeList.size() > 0) { return new ArtifactTypeImpl<ResourcesType<T>>(this, "artifact", childNode, nodeList.get(0)); } return createArtifact(); }
/** * If not already created, a new <code>native-artifact</code> element will be created and returned. * Otherwise, the first existing <code>native-artifact</code> element will be returned. * @return the instance defined for the element <code>native-artifact</code> */ public ArtifactType<ResourcesType<T>> getOrCreateNativeArtifact() { List<Node> nodeList = childNode.get("native-artifact"); if (nodeList != null && nodeList.size() > 0) { return new ArtifactTypeImpl<ResourcesType<T>>(this, "native-artifact", childNode, nodeList.get(0)); } return createNativeArtifact(); }