/** * 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); }
/** * 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(); }