View Javadoc

1   package org.fosstrak.epcis.model;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   import javax.xml.bind.JAXBElement;
6   import javax.xml.bind.annotation.XmlAccessType;
7   import javax.xml.bind.annotation.XmlAccessorType;
8   import javax.xml.bind.annotation.XmlElement;
9   import javax.xml.bind.annotation.XmlElementRef;
10  import javax.xml.bind.annotation.XmlType;
11  
12  /**
13   * <p>
14   * Java class for Scope complex type.
15   * <p>
16   * The following schema fragment specifies the expected content contained within
17   * this class.
18   * 
19   * <pre>
20   * &lt;complexType name="Scope">
21   *   &lt;complexContent>
22   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
23   *       &lt;sequence>
24   *         &lt;group ref="{http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader}ScopeAttributes"/>
25   *         &lt;element ref="{http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader}ScopeInformation" maxOccurs="unbounded" minOccurs="0"/>
26   *       &lt;/sequence>
27   *     &lt;/restriction>
28   *   &lt;/complexContent>
29   * &lt;/complexType>
30   * </pre>
31   */
32  @XmlAccessorType(XmlAccessType.FIELD)
33  @XmlType(name = "Scope", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader", propOrder = {
34          "type", "instanceIdentifier", "identifier", "scopeInformation" })
35  public class Scope {
36  
37      @XmlElement(name = "Type", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader", required = true)
38      protected String type;
39      @XmlElement(name = "InstanceIdentifier", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader", required = true)
40      protected String instanceIdentifier;
41      @XmlElement(name = "Identifier", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader")
42      protected String identifier;
43      @XmlElementRef(name = "ScopeInformation", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader", type = JAXBElement.class)
44      protected List<JAXBElement<?>> scopeInformation;
45  
46      /**
47       * Gets the value of the type property.
48       * 
49       * @return possible object is {@link String }
50       */
51      public String getType() {
52          return type;
53      }
54  
55      /**
56       * Sets the value of the type property.
57       * 
58       * @param value
59       *            allowed object is {@link String }
60       */
61      public void setType(String value) {
62          this.type = value;
63      }
64  
65      /**
66       * Gets the value of the instanceIdentifier property.
67       * 
68       * @return possible object is {@link String }
69       */
70      public String getInstanceIdentifier() {
71          return instanceIdentifier;
72      }
73  
74      /**
75       * Sets the value of the instanceIdentifier property.
76       * 
77       * @param value
78       *            allowed object is {@link String }
79       */
80      public void setInstanceIdentifier(String value) {
81          this.instanceIdentifier = value;
82      }
83  
84      /**
85       * Gets the value of the identifier property.
86       * 
87       * @return possible object is {@link String }
88       */
89      public String getIdentifier() {
90          return identifier;
91      }
92  
93      /**
94       * Sets the value of the identifier property.
95       * 
96       * @param value
97       *            allowed object is {@link String }
98       */
99      public void setIdentifier(String value) {
100         this.identifier = value;
101     }
102 
103     /**
104      * Gets the value of the scopeInformation property.
105      * <p>
106      * This accessor method returns a reference to the live list, not a
107      * snapshot. Therefore any modification you make to the returned list will
108      * be present inside the JAXB object. This is why there is not a
109      * <CODE>set</CODE> method for the scopeInformation property.
110      * <p>
111      * For example, to add a new item, do as follows:
112      * 
113      * <pre>
114      * getScopeInformation().add(newItem);
115      * </pre>
116      * <p>
117      * Objects of the following type(s) are allowed in the list
118      * {@link JAXBElement }{@code <}{@link BusinessService }{@code >}
119      * {@link JAXBElement }{@code <}{@link Object }{@code >} {@link JAXBElement }
120      * {@code <}{@link CorrelationInformation }{@code >}
121      */
122     public List<JAXBElement<?>> getScopeInformation() {
123         if (scopeInformation == null) {
124             scopeInformation = new ArrayList<JAXBElement<?>>();
125         }
126         return this.scopeInformation;
127     }
128 
129 }