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=""></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">
     <restriction base="{}anyType">
         <element name="value" type="{}string" maxOccurs="unbounded" minOccurs="0"/>
         <element name="annotation" type="{}annotationType" maxOccurs="unbounded" minOccurs="0"/>
       <attribute name="name" use="required" type="{}string" />
 @XmlType(name = "elementType", propOrder = {
 public class ElementType {
         @XmlElementRef(name = "value", namespace = "", type = JAXBElement.class),
         @XmlElementRef(name = "annotation", namespace = "", type = JAXBElement.class)
     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:


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.

possible object is
    public String getName() {
        return ;

Sets the value of the name property.

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