/** * 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>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); }
/** * 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.0.xsd"); addNamespace("xmlns", "http://jboss.org/xml/ns/javax/validation/mapping"); return this; }
/** * 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>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>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>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>constraint-definition</code> element * @return the new created instance of <code>ConstraintDefinitionType<ValidationMappingDescriptor></code> */ public ConstraintDefinitionType<ValidationMappingDescriptor> createConstraintDefinition() { return new ConstraintDefinitionTypeImpl<ValidationMappingDescriptor>(this, "constraint-definition", model); }
/** * 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); }
/** * 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.0.xsd"); addNamespace("xmlns", "http://jboss.org/xml/ns/javax/validation/mapping"); return this; }
/** * 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>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>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>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>element</code> element * @return the new created instance of <code>ElementType<ConstraintType<T>></code> */ public ElementType<ConstraintType<T>> createElement() { return new ElementTypeImpl<ConstraintType<T>>(this, "element", 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<ClassType<T>></code> */ public ConstraintType<ClassType<T>> createConstraint() { return new ConstraintTypeImpl<ClassType<T>>(this, "constraint", childNode); }