Package org.apache.bval.jsr.xml
Class ConstraintType
- java.lang.Object
-
- org.apache.bval.jsr.xml.ConstraintType
-
public class ConstraintType extends Object
Classe Java pour constraintType complex type.
Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe.
<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>
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringannotationprotected List<ElementType>elementprotected GroupsTypegroupsprotected Stringmessageprotected PayloadTypepayload
-
Constructor Summary
Constructors Constructor Description ConstraintType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAnnotation()Obtient la valeur de la propriété annotation.List<ElementType>getElement()Gets the value of the element property.GroupsTypegetGroups()Obtient la valeur de la propriété groups.StringgetMessage()Obtient la valeur de la propriété message.PayloadTypegetPayload()Obtient la valeur de la propriété payload.voidsetAnnotation(String value)Définit la valeur de la propriété annotation.voidsetGroups(GroupsType value)Définit la valeur de la propriété groups.voidsetMessage(String value)Définit la valeur de la propriété message.voidsetPayload(PayloadType value)Définit la valeur de la propriété payload.
-
-
-
Field Detail
-
message
protected String message
-
groups
protected GroupsType groups
-
payload
protected PayloadType payload
-
element
protected List<ElementType> element
-
annotation
protected String annotation
-
-
Method Detail
-
getMessage
public String getMessage()
Obtient la valeur de la propriété message.- Returns:
- possible object is
String
-
setMessage
public void setMessage(String value)
Définit la valeur de la propriété message.- Parameters:
value- allowed object isString
-
getGroups
public GroupsType getGroups()
Obtient la valeur de la propriété groups.- Returns:
- possible object is
GroupsType
-
setGroups
public void setGroups(GroupsType value)
Définit la valeur de la propriété groups.- Parameters:
value- allowed object isGroupsType
-
getPayload
public PayloadType getPayload()
Obtient la valeur de la propriété payload.- Returns:
- possible object is
PayloadType
-
setPayload
public void setPayload(PayloadType value)
Définit la valeur de la propriété payload.- Parameters:
value- allowed object isPayloadType
-
getElement
public List<ElementType> getElement()
Gets the value of the element 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 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
-
getAnnotation
public String getAnnotation()
Obtient la valeur de la propriété annotation.- Returns:
- possible object is
String
-
-