Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.example.stock;
  import java.util.List;

Java class for anonymous complex type.

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

     <restriction base="{}anyType">
         <element name="first" type="{}anyType"/>
 @XmlType(name = "", propOrder = {
 @XmlRootElement(name = "anyElement")
 public class AnyElement {
     protected Element first;
     protected List<Elementany;

Gets the value of the first property.

possible object is
     public Element getFirst() {
         return ;

Sets the value of the first property.

value allowed object is
     public void setFirst(Element value) {
         this. = value;

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

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


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

     public List<ElementgetAny() {
         if ( == null) {
              = new ArrayList<Element>();
         return this.;
New to GrepCode? Check out our FAQ X