Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.opendope.components;
  
  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="component" maxOccurs="unbounded">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" />
                 <attribute name="iri" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "", propOrder = {
     "component"
 })
 @XmlRootElement(name = "components")
 public class Components {
 
     @XmlElement(required = true)
     protected List<Components.Componentcomponent;

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

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

    getComponent().add(newItem);
 

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

 
     public List<Components.ComponentgetComponent() {
         if ( == null) {
              = new ArrayList<Components.Component>();
         }
         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">
       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" />
       <attribute name="iri" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "")
    public static class Component {
        @XmlAttribute(required = true)
        @XmlID
        @XmlSchemaType(name = "ID")
        protected String id;
        @XmlAttribute(required = true)
        protected String iri;

        
Gets the value of the id property.

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

        
Sets the value of the id property.

Parameters:
value allowed object is
        public void setId(String value) {
            this. = value;
        }

        
Gets the value of the iri property.

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

        
Sets the value of the iri property.

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