Class ConstraintMappingsType
Java class for constraint-mappingsType complex type.
The following schema fragment specifies the expected content contained within this class.
<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" use="required" type="{http://xmlns.jcp.org/xml/ns/validation/mapping}versionType" fixed="2.0" />
</restriction>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ConstraintDefinitionType>protected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBean()Gets the value of the bean property.Gets the value of the constraintDefinition property.Gets the value of the defaultPackage property.Gets the value of the version property.voidsetDefaultPackage(String value) Sets the value of the defaultPackage property.voidsetVersion(String value) Sets the value of the version property.
-
Field Details
-
defaultPackage
-
bean
-
constraintDefinition
-
version
-
-
Constructor Details
-
ConstraintMappingsType
public ConstraintMappingsType()
-
-
Method Details
-
getDefaultPackage
Gets the value of the defaultPackage property.- Returns:
- possible object is
String
-
setDefaultPackage
Sets the value of the defaultPackage property.- Parameters:
value- allowed object isString
-
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
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
Gets the value of the version property.- Returns:
- possible object is
String
-
setVersion
Sets the value of the version property.- Parameters:
value- allowed object isString
-