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 elementType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="elementType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
         <element name="annotation" type="{http://jboss.org/xml/ns/javax/validation/mapping}annotationType" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "elementType", propOrder = {
     "content"
 })
 public class ElementType {
 
     @XmlElementRefs({
         @XmlElementRef(name = "value", namespace = "http://jboss.org/xml/ns/javax/validation/mapping", type = JAXBElement.class),
         @XmlElementRef(name = "annotation", namespace = "http://jboss.org/xml/ns/javax/validation/mapping", type = JAXBElement.class)
     })
     @XmlMixed
     protected List<Serializablecontent;
     @XmlAttribute(required = true)
     protected String name;

    
Gets the value of the content 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 content property.

For example, to add a new item, do as follows:

    getContent().add(newItem);
 

Objects of the following type(s) are allowed in the list <> <>

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

    
Gets the value of the name property.

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

    
Sets the value of the name property.

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