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