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 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://jboss.org/xml/ns/javax/validation/mapping}beanType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="constraint-definition" type="{http://jboss.org/xml/ns/javax/validation/mapping}constraint-definitionType" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "constraint-mappingsType", propOrder = {
     "defaultPackage",
     "bean",
     "constraintDefinition"
 })
 public class ConstraintMappingsType {
 
     @XmlElement(name = "default-package")
     protected String defaultPackage;
     protected List<BeanTypebean;
     @XmlElement(name = "constraint-definition")
     protected List<ConstraintDefinitionTypeconstraintDefinition;

    
Gets the value of the defaultPackage property.

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

    
Sets the value of the defaultPackage property.

Parameters:
value allowed object is
 
     public void setDefaultPackage(String value) {
         this. = 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

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

    
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

        if ( == null) {
             = new ArrayList<ConstraintDefinitionType>();
        }
        return this.;
    }
New to GrepCode? Check out our FAQ X