Class ConstraintMappingsType
- java.lang.Object
-
- org.apache.bval.jsr.xml.ConstraintMappingsType
-
public class ConstraintMappingsType extends Object
Classe Java pour constraint-mappingsType complex type.
Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe.
<complexType name="constraint-mappingsType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="default-package" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="bean" type="{http://xmlns.jcp.org/xml/ns/validation/mapping}beanType" maxOccurs="unbounded" minOccurs="0"/> <element name="constraint-definition" type="{http://xmlns.jcp.org/xml/ns/validation/mapping}constraint-definitionType" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="version" type="{http://xmlns.jcp.org/xml/ns/validation/mapping}versionType" fixed="2.0" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<BeanType>beanprotected List<ConstraintDefinitionType>constraintDefinitionprotected StringdefaultPackageprotected Stringversion
-
Constructor Summary
Constructors Constructor Description ConstraintMappingsType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BeanType>getBean()Gets the value of the bean property.List<ConstraintDefinitionType>getConstraintDefinition()Gets the value of the constraintDefinition property.StringgetDefaultPackage()Obtient la valeur de la propriété defaultPackage.StringgetVersion()Obtient la valeur de la propriété version.voidsetDefaultPackage(String value)Définit la valeur de la propriété defaultPackage.voidsetVersion(String value)Définit la valeur de la propriété version.
-
-
-
Method Detail
-
getDefaultPackage
public String getDefaultPackage()
Obtient la valeur de la propriété defaultPackage.- Returns:
- possible object is
String
-
setDefaultPackage
public void setDefaultPackage(String value)
Définit la valeur de la propriété defaultPackage.- Parameters:
value- allowed object isString
-
getBean
public List<BeanType> getBean()
Gets the value of the bean property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the bean property.For example, to add a new item, do as follows:
getBean().add(newItem);Objects of the following type(s) are allowed in the list
BeanType
-
getConstraintDefinition
public List<ConstraintDefinitionType> getConstraintDefinition()
Gets the value of the constraintDefinition property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the constraintDefinition property.For example, to add a new item, do as follows:
getConstraintDefinition().add(newItem);Objects of the following type(s) are allowed in the list
ConstraintDefinitionType
-
getVersion
public String getVersion()
Obtient la valeur de la propriété version.- Returns:
- possible object is
String
-
-