Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.docx4j.model.structure.jaxb;
  
  import java.util.List;

Java class for anonymous complex type.

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

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="section" maxOccurs="unbounded">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
                 </sequence>
                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "", propOrder = {
     "section"
 })
 @XmlRootElement(name = "sections")
 public class Sections {
 
     @XmlElement(required = true)
     protected List<Sections.Sectionsection;

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

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

    getSection().add(newItem);
 

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

 
     public List<Sections.SectiongetSection() {
         if ( == null) {
              = new ArrayList<Sections.Section>();
         }
         return this.;
     }


    

Java class for anonymous complex type.

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

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "any"
    })
    public static class Section {
        @XmlAnyElement
        protected List<Elementany;
        @XmlAttribute(required = true)
        protected String name;

        
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:

    getAny().add(newItem);
 

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

        public List<ElementgetAny() {
            if ( == null) {
                 = new ArrayList<Element>();
            }
            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