View Javadoc

1   package org.fosstrak.epcis.model;
2   
3   import java.math.BigDecimal;
4   import javax.xml.bind.annotation.XmlAccessType;
5   import javax.xml.bind.annotation.XmlAccessorType;
6   import javax.xml.bind.annotation.XmlAttribute;
7   import javax.xml.bind.annotation.XmlSchemaType;
8   import javax.xml.bind.annotation.XmlSeeAlso;
9   import javax.xml.bind.annotation.XmlType;
10  import javax.xml.datatype.XMLGregorianCalendar;
11  
12  /**
13   * EPCglobal document properties for all messages.
14   * <p>
15   * Java class for Document complex type.
16   * <p>
17   * The following schema fragment specifies the expected content contained within
18   * this class.
19   * 
20   * <pre>
21   * &lt;complexType name="Document">
22   *   &lt;complexContent>
23   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
24   *       &lt;attribute name="schemaVersion" use="required" type="{http://www.w3.org/2001/XMLSchema}decimal" />
25   *       &lt;attribute name="creationDate" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
26   *     &lt;/restriction>
27   *   &lt;/complexContent>
28   * &lt;/complexType>
29   * </pre>
30   */
31  @XmlAccessorType(XmlAccessType.FIELD)
32  @XmlType(name = "Document", namespace = "urn:epcglobal:xsd:1")
33  @XmlSeeAlso( { EPCISDocumentType.class, EPCISMasterDataDocumentType.class, EPCISQueryDocumentType.class })
34  public abstract class Document {
35  
36      @XmlAttribute(name = "schemaVersion", required = true)
37      protected BigDecimal schemaVersion;
38      @XmlAttribute(name = "creationDate", required = true)
39      @XmlSchemaType(name = "dateTime")
40      protected XMLGregorianCalendar creationDate;
41  
42      /**
43       * Gets the value of the schemaVersion property.
44       * 
45       * @return possible object is {@link BigDecimal }
46       */
47      public BigDecimal getSchemaVersion() {
48          return schemaVersion;
49      }
50  
51      /**
52       * Sets the value of the schemaVersion property.
53       * 
54       * @param value
55       *            allowed object is {@link BigDecimal }
56       */
57      public void setSchemaVersion(BigDecimal value) {
58          this.schemaVersion = value;
59      }
60  
61      /**
62       * Gets the value of the creationDate property.
63       * 
64       * @return possible object is {@link XMLGregorianCalendar }
65       */
66      public XMLGregorianCalendar getCreationDate() {
67          return creationDate;
68      }
69  
70      /**
71       * Sets the value of the creationDate property.
72       * 
73       * @param value
74       *            allowed object is {@link XMLGregorianCalendar }
75       */
76      public void setCreationDate(XMLGregorianCalendar value) {
77          this.creationDate = value;
78      }
79  
80  }