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