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