org.hibernate.validator.internal.xml.binding.ConstraintMappingsType Maven / Gradle / Ivy
Show all versions of bean-validator Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.05.15 at 10:46:31 AM UTC
//
package org.hibernate.validator.internal.xml.binding;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* 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>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "constraint-mappingsType", propOrder = {
"defaultPackage",
"bean",
"constraintDefinition"
})
public class ConstraintMappingsType {
@XmlElement(name = "default-package")
@XmlJavaTypeAdapter(javax.xml.bind.annotation.adapters.CollapsedStringAdapter.class)
protected String defaultPackage;
protected List bean;
@XmlElement(name = "constraint-definition")
protected List constraintDefinition;
@XmlAttribute(name = "version", required = true)
@XmlJavaTypeAdapter(javax.xml.bind.annotation.adapters.CollapsedStringAdapter.class)
protected String version;
/**
* Gets the value of the defaultPackage property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDefaultPackage() {
return defaultPackage;
}
/**
* Sets the value of the defaultPackage property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDefaultPackage(String value) {
this.defaultPackage = value;
}
/**
* 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 set
method 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
* {@link BeanType }
*
*
*/
public List getBean() {
if (bean == null) {
bean = new ArrayList();
}
return this.bean;
}
/**
* 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 set
method 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
* {@link ConstraintDefinitionType }
*
*
*/
public List getConstraintDefinition() {
if (constraintDefinition == null) {
constraintDefinition = new ArrayList();
}
return this.constraintDefinition;
}
/**
* Gets the value of the version property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVersion() {
if (version == null) {
return "2.0";
} else {
return version;
}
}
/**
* Sets the value of the version property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVersion(String value) {
this.version = value;
}
}