public class ConstraintType extends Object
Java-Klasse für constraintType complex type.
Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
<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://xmlns.jcp.org/xml/ns/validation/mapping}groupsType" minOccurs="0"/> <element name="payload" type="{http://xmlns.jcp.org/xml/ns/validation/mapping}payloadType" minOccurs="0"/> <element name="element" type="{http://xmlns.jcp.org/xml/ns/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 String |
annotation |
protected List<ElementType> |
element |
protected GroupsType |
groups |
protected String |
message |
protected PayloadType |
payload |
Constructor and Description |
---|
ConstraintType() |
Modifier and Type | Method and Description |
---|---|
String |
getAnnotation()
Ruft den Wert der annotation-Eigenschaft ab.
|
List<ElementType> |
getElement()
Gets the value of the element property.
|
GroupsType |
getGroups()
Ruft den Wert der groups-Eigenschaft ab.
|
String |
getMessage()
Ruft den Wert der message-Eigenschaft ab.
|
PayloadType |
getPayload()
Ruft den Wert der payload-Eigenschaft ab.
|
void |
setAnnotation(String value)
Legt den Wert der annotation-Eigenschaft fest.
|
void |
setGroups(GroupsType value)
Legt den Wert der groups-Eigenschaft fest.
|
void |
setMessage(String value)
Legt den Wert der message-Eigenschaft fest.
|
void |
setPayload(PayloadType value)
Legt den Wert der payload-Eigenschaft fest.
|
protected String message
protected GroupsType groups
protected PayloadType payload
protected List<ElementType> element
protected String annotation
public String getMessage()
String
public void setMessage(String value)
value
- allowed object is
String
public GroupsType getGroups()
GroupsType
public void setGroups(GroupsType value)
value
- allowed object is
GroupsType
public PayloadType getPayload()
PayloadType
public void setPayload(PayloadType value)
value
- allowed object is
PayloadType
public 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 String getAnnotation()
String
Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.