/** * Creates a new <code>bean</code> element * @return the new created instance of <code>BeanType<ValidationMappingDescriptor></code> */ public BeanType<ValidationMappingDescriptor> createBean() { return new BeanTypeImpl<ValidationMappingDescriptor>(this, "bean", model); }
/** * If not already created, a new <code>field</code> element will be created and returned. * Otherwise, the first existing <code>field</code> element will be returned. * @return the instance defined for the element <code>field</code> */ public FieldType<BeanType<T>> getOrCreateField() { List<Node> nodeList = childNode.get("field"); if (nodeList != null && nodeList.size() > 0) { return new FieldTypeImpl<BeanType<T>>(this, "field", childNode, nodeList.get(0)); } return createField(); }
/** * If not already created, a new <code>getter</code> element will be created and returned. * Otherwise, the first existing <code>getter</code> element will be returned. * @return the instance defined for the element <code>getter</code> */ public GetterType<BeanType<T>> getOrCreateGetter() { List<Node> nodeList = childNode.get("getter"); if (nodeList != null && nodeList.size() > 0) { return new GetterTypeImpl<BeanType<T>>(this, "getter", childNode, nodeList.get(0)); } return createGetter(); }
/** * If not already created, a new <code>field</code> element will be created and returned. * Otherwise, the first existing <code>field</code> element will be returned. * @return the instance defined for the element <code>field</code> */ public FieldType<BeanType<T>> getOrCreateField() { List<Node> nodeList = childNode.get("field"); if (nodeList != null && nodeList.size() > 0) { return new FieldTypeImpl<BeanType<T>>(this, "field", childNode, nodeList.get(0)); } return createField(); }
/** * If not already created, a new <code>getter</code> element will be created and returned. * Otherwise, the first existing <code>getter</code> element will be returned. * @return the instance defined for the element <code>getter</code> */ public GetterType<BeanType<T>> getOrCreateGetter() { List<Node> nodeList = childNode.get("getter"); if (nodeList != null && nodeList.size() > 0) { return new GetterTypeImpl<BeanType<T>>(this, "getter", childNode, nodeList.get(0)); } return createGetter(); }
/** * Creates a new <code>bean</code> element * @return the new created instance of <code>BeanType<ValidationMappingDescriptor></code> */ public BeanType<ValidationMappingDescriptor> createBean() { return new BeanTypeImpl<ValidationMappingDescriptor>(this, "bean", model); }
/** * Returns all <code>bean</code> elements * @return list of <code>bean</code> */ public List<BeanType<ValidationMappingDescriptor>> getAllBean() { List<BeanType<ValidationMappingDescriptor>> list = new ArrayList<BeanType<ValidationMappingDescriptor>>(); List<Node> nodeList = model.get("bean"); for(Node node: nodeList) { BeanType<ValidationMappingDescriptor> type = new BeanTypeImpl<ValidationMappingDescriptor>(this, "bean", model, node); list.add(type); } return list; }
/** * Returns all <code>bean</code> elements * @return list of <code>bean</code> */ public List<BeanType<ValidationMappingDescriptor>> getAllBean() { List<BeanType<ValidationMappingDescriptor>> list = new ArrayList<BeanType<ValidationMappingDescriptor>>(); List<Node> nodeList = model.get("bean"); for(Node node: nodeList) { BeanType<ValidationMappingDescriptor> type = new BeanTypeImpl<ValidationMappingDescriptor>(this, "bean", model, node); list.add(type); } return list; }
/** * If not already created, a new <code>bean</code> element will be created and returned. * Otherwise, the first existing <code>bean</code> element will be returned. * @return the instance defined for the element <code>bean</code> */ public BeanType<ValidationMappingDescriptor> getOrCreateBean() { List<Node> nodeList = model.get("bean"); if (nodeList != null && nodeList.size() > 0) { return new BeanTypeImpl<ValidationMappingDescriptor>(this, "bean", model, nodeList.get(0)); } return createBean(); }
/** * If not already created, a new <code>bean</code> element will be created and returned. * Otherwise, the first existing <code>bean</code> element will be returned. * @return the instance defined for the element <code>bean</code> */ public BeanType<ValidationMappingDescriptor> getOrCreateBean() { List<Node> nodeList = model.get("bean"); if (nodeList != null && nodeList.size() > 0) { return new BeanTypeImpl<ValidationMappingDescriptor>(this, "bean", model, nodeList.get(0)); } return createBean(); }