Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2012.05.09 at 12:45:17 PM CEST 
  //
  
  
  package org.hibernate.validator.internal.xml;
 
 import java.util.List;

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>
 
 
 @XmlType(name = "constraintType", propOrder = {
     "message",
     "groups",
     "payload",
     "element"
 })
 public class ConstraintType {
 
     protected String message;
     protected GroupsType groups;
     protected PayloadType payload;
     protected List<ElementTypeelement;
     @XmlAttribute(required = true)
     protected String annotation;

    
Gets the value of the message property.

Returns:
possible object is
 
     public String getMessage() {
         return ;
     }

    
Sets the value of the message property.

Parameters:
value allowed object is
 
     public void setMessage(String value) {
         this. = value;
     }

    
Gets the value of the groups property.

Returns:
possible object is
 
     public GroupsType getGroups() {
         return ;
     }

    
Sets the value of the groups property.

Parameters:
value allowed object is
    public void setGroups(GroupsType value) {
        this. = value;
    }

    
Gets the value of the payload property.

Returns:
possible object is
    public PayloadType getPayload() {
        return ;
    }

    
Sets the value of the payload property.

Parameters:
value allowed object is
    public void setPayload(PayloadType value) {
        this. = value;
    }

    
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 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

    public List<ElementTypegetElement() {
        if ( == null) {
             = new ArrayList<ElementType>();
        }
        return this.;
    }

    
Gets the value of the annotation property.

Returns:
possible object is
    public String getAnnotation() {
        return ;
    }

    
Sets the value of the annotation property.

Parameters:
value allowed object is
    public void setAnnotation(String value) {
        this. = value;
    }
New to GrepCode? Check out our FAQ X