/** * Creates a new <code>property</code> element * @return the new created instance of <code>PropertyType<ValidationConfigurationDescriptor></code> */ public PropertyType<ValidationConfigurationDescriptor> createProperty() { return new PropertyTypeImpl<ValidationConfigurationDescriptor>(this, "property", model); }
/** * Creates a new <code>property</code> element * @return the new created instance of <code>PropertyType<ValidationConfigurationDescriptor></code> */ public PropertyType<ValidationConfigurationDescriptor> createProperty() { return new PropertyTypeImpl<ValidationConfigurationDescriptor>(this, "property", model); }
/** * Returns all <code>property</code> elements * @return list of <code>property</code> */ public List<PropertyType<ValidationConfigurationDescriptor>> getAllProperty() { List<PropertyType<ValidationConfigurationDescriptor>> list = new ArrayList<PropertyType<ValidationConfigurationDescriptor>>(); List<Node> nodeList = model.get("property"); for(Node node: nodeList) { PropertyType<ValidationConfigurationDescriptor> type = new PropertyTypeImpl<ValidationConfigurationDescriptor>(this, "property", model, node); list.add(type); } return list; }
/** * Returns all <code>property</code> elements * @return list of <code>property</code> */ public List<PropertyType<ValidationConfigurationDescriptor>> getAllProperty() { List<PropertyType<ValidationConfigurationDescriptor>> list = new ArrayList<PropertyType<ValidationConfigurationDescriptor>>(); List<Node> nodeList = model.get("property"); for(Node node: nodeList) { PropertyType<ValidationConfigurationDescriptor> type = new PropertyTypeImpl<ValidationConfigurationDescriptor>(this, "property", model, 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 PropertyType<ValidationConfigurationDescriptor> getOrCreateProperty() { List<Node> nodeList = model.get("property"); if (nodeList != null && nodeList.size() > 0) { return new PropertyTypeImpl<ValidationConfigurationDescriptor>(this, "property", model, 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 PropertyType<ValidationConfigurationDescriptor> getOrCreateProperty() { List<Node> nodeList = model.get("property"); if (nodeList != null && nodeList.size() > 0) { return new PropertyTypeImpl<ValidationConfigurationDescriptor>(this, "property", model, nodeList.get(0)); } return createProperty(); }