public class ConstraintType
extends java.lang.Object
Java class for constraintType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="constraintType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="groups" type="{http://jboss.org/xml/ns/javax/validation/mapping}groupsType" minOccurs="0"/>
<element name="payload" type="{http://jboss.org/xml/ns/javax/validation/mapping}payloadType" minOccurs="0"/>
<element name="element" type="{http://jboss.org/xml/ns/javax/validation/mapping}elementType" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="annotation" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
annotation |
protected java.util.List<ElementType> |
element |
protected GroupsType |
groups |
protected java.lang.String |
message |
protected PayloadType |
payload |
| Constructor and Description |
|---|
ConstraintType() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAnnotation()
Gets the value of the annotation property.
|
java.util.List<ElementType> |
getElement()
Gets the value of the element property.
|
GroupsType |
getGroups()
Gets the value of the groups property.
|
java.lang.String |
getMessage()
Gets the value of the message property.
|
PayloadType |
getPayload()
Gets the value of the payload property.
|
void |
setAnnotation(java.lang.String value)
Sets the value of the annotation property.
|
void |
setGroups(GroupsType value)
Sets the value of the groups property.
|
void |
setMessage(java.lang.String value)
Sets the value of the message property.
|
void |
setPayload(PayloadType value)
Sets the value of the payload property.
|
protected java.lang.String message
protected GroupsType groups
protected PayloadType payload
protected java.util.List<ElementType> element
protected java.lang.String annotation
public java.lang.String getMessage()
Stringpublic void setMessage(java.lang.String value)
value - allowed object is
Stringpublic GroupsType getGroups()
GroupsTypepublic void setGroups(GroupsType value)
value - allowed object is
GroupsTypepublic PayloadType getPayload()
PayloadTypepublic void setPayload(PayloadType value)
value - allowed object is
PayloadTypepublic java.util.List<ElementType> getElement()
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 element property.
For example, to add a new item, do as follows:
getElement().add(newItem);
Objects of the following type(s) are allowed in the list
ElementType
public java.lang.String getAnnotation()
Stringpublic void setAnnotation(java.lang.String value)
value - allowed object is
String