/** * Creates a new <code>constraint</code> element * @return the new created instance of <code>ConstraintType<ClassType<T>></code> */ public ConstraintType<ClassType<T>> createConstraint() { return new ConstraintTypeImpl<ClassType<T>>(this, "constraint", childNode); }
/** * Creates a new <code>element</code> element * @return the new created instance of <code>ElementType<AnnotationType<T>></code> */ public ElementType<AnnotationType<T>> createElement() { return new ElementTypeImpl<AnnotationType<T>>(this, "element", childNode); }
/** * Creates a new <code>annotation</code> element * @return the new created instance of <code>AnnotationType<ElementType<T>></code> */ public AnnotationType<ElementType<T>> createAnnotation() { return new AnnotationTypeImpl<ElementType<T>>(this, "annotation", childNode); }
public ValidationMappingDescriptorImpl(String descriptorName, Node node) { super(descriptorName); this.model = node; addDefaultNamespaces(); }
/** * Creates a new <code>field</code> element * @return the new created instance of <code>FieldType<BeanType<T>></code> */ public FieldType<BeanType<T>> createField() { return new FieldTypeImpl<BeanType<T>>(this, "field", childNode); }
/** * Creates a new <code>getter</code> element * @return the new created instance of <code>GetterType<BeanType<T>></code> */ public GetterType<BeanType<T>> createGetter() { return new GetterTypeImpl<BeanType<T>>(this, "getter", childNode); }
/** * Creates a new <code>convert-group</code> element * @return the new created instance of <code>GroupConversionType<ReturnValueType<T>></code> */ public GroupConversionType<ReturnValueType<T>> createConvertGroup() { return new GroupConversionTypeImpl<ReturnValueType<T>>(this, "convert-group", childNode); }
/** * Creates a new <code>parameter</code> element * @return the new created instance of <code>ParameterType<ConstructorType<T>></code> */ public ParameterType<ConstructorType<T>> createParameter() { return new ParameterTypeImpl<ConstructorType<T>>(this, "parameter", childNode); }
/** * Adds the default namespaces as defined in the specification * @return the current instance of <code>ValidationMappingDescriptor</code> */ public ValidationMappingDescriptor addDefaultNamespaces() { addNamespace("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); addNamespace("xsi:schemaLocation", "http://jboss.org/xml/ns/javax/validation/mapping validation-mapping-1.1.xsd"); addNamespace("xmlns", "http://jboss.org/xml/ns/javax/validation/mapping"); return this; }
/** * Creates a new <code>method</code> element * @return the new created instance of <code>MethodType<BeanType<T>></code> */ public MethodType<BeanType<T>> createMethod() { return new MethodTypeImpl<BeanType<T>>(this, "method", childNode); }
/** * Creates a new <code>constructor</code> element * @return the new created instance of <code>ConstructorType<BeanType<T>></code> */ public ConstructorType<BeanType<T>> createConstructor() { return new ConstructorTypeImpl<BeanType<T>>(this, "constructor", childNode); }
/** * Creates a new <code>constraint</code> element * @return the new created instance of <code>ConstraintType<ParameterType<T>></code> */ public ConstraintType<ParameterType<T>> createConstraint() { return new ConstraintTypeImpl<ParameterType<T>>(this, "constraint", childNode); }
/** * Creates a new <code>element</code> element * @return the new created instance of <code>ElementType<AnnotationType<T>></code> */ public ElementType<AnnotationType<T>> createElement() { return new ElementTypeImpl<AnnotationType<T>>(this, "element", childNode); }
public ValidationMappingDescriptorImpl(String descriptorName, Node node) { super(descriptorName); this.model = node; addDefaultNamespaces(); }
/** * Creates a new <code>field</code> element * @return the new created instance of <code>FieldType<BeanType<T>></code> */ public FieldType<BeanType<T>> createField() { return new FieldTypeImpl<BeanType<T>>(this, "field", childNode); }
/** * Creates a new <code>getter</code> element * @return the new created instance of <code>GetterType<BeanType<T>></code> */ public GetterType<BeanType<T>> createGetter() { return new GetterTypeImpl<BeanType<T>>(this, "getter", childNode); }
/** * Creates a new <code>constraint</code> element * @return the new created instance of <code>ConstraintType<GetterType<T>></code> */ public ConstraintType<GetterType<T>> createConstraint() { return new ConstraintTypeImpl<GetterType<T>>(this, "constraint", childNode); }
/** * Creates a new <code>constraint</code> element * @return the new created instance of <code>ConstraintType<FieldType<T>></code> */ public ConstraintType<FieldType<T>> createConstraint() { return new ConstraintTypeImpl<FieldType<T>>(this, "constraint", childNode); }
/** * Creates a new <code>constraint</code> element * @return the new created instance of <code>ConstraintType<GetterType<T>></code> */ public ConstraintType<GetterType<T>> createConstraint() { return new ConstraintTypeImpl<GetterType<T>>(this, "constraint", childNode); }
/** * Creates a new <code>constraint</code> element * @return the new created instance of <code>ConstraintType<CrossParameterType<T>></code> */ public ConstraintType<CrossParameterType<T>> createConstraint() { return new ConstraintTypeImpl<CrossParameterType<T>>(this, "constraint", childNode); }