View Javadoc
1   /**
2    * This Source Code Form is subject to the terms of the Mozilla Public
3    * License, v. 2.0. If a copy of the MPL was not distributed with this
4    * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5    *
6    * If it is not possible or desirable to put the notice in a particular
7    * file, then You may include the notice in a location (such as a LICENSE
8    * file in a relevant directory) where a recipient would be likely to look
9    * for such a notice.
10  
11   * 
12   */
13   
14  /*  ---------------------------------------------------------------------------
15   *  U.S. Government, Department of the Army
16   *  Army Materiel Command
17   *  Research Development Engineering Command
18   *  Communications Electronics Research Development and Engineering Center
19   *  ---------------------------------------------------------------------------
20   */
21  
22  package org.oasis_open.docs.wsdm.mows_2;
23  
24  import java.math.BigInteger;
25  import java.util.HashMap;
26  import java.util.Map;
27  import javax.xml.bind.annotation.XmlAccessType;
28  import javax.xml.bind.annotation.XmlAccessorType;
29  import javax.xml.bind.annotation.XmlAnyAttribute;
30  import javax.xml.bind.annotation.XmlAttribute;
31  import javax.xml.bind.annotation.XmlSchemaType;
32  import javax.xml.bind.annotation.XmlType;
33  import javax.xml.bind.annotation.XmlValue;
34  import javax.xml.datatype.Duration;
35  import java.util.Calendar;
36  import javax.xml.namespace.QName;
37  
38  
39  /**
40   * <p>Java class for IntegerCounter complex type.
41   * 
42   * <p>The following schema fragment specifies the expected content contained within this class.
43   * 
44   * <pre>
45   * &lt;complexType name="IntegerCounter">
46   *   &lt;simpleContent>
47   *     &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>nonNegativeInteger">
48   *       &lt;attGroup ref="{http://docs.oasis-open.org/wsdm/muws2-2.xsd}MetricAttributes"/>
49   *     &lt;/extension>
50   *   &lt;/simpleContent>
51   * &lt;/complexType>
52   * </pre>
53   * 
54   * 
55   */
56  @XmlAccessorType(XmlAccessType.FIELD)
57  @XmlType(name = "IntegerCounter", propOrder = {
58      "value"
59  })
60  public class IntegerCounter {
61  
62      @XmlValue
63      @XmlSchemaType(name = "nonNegativeInteger")
64      protected BigInteger value;
65      @XmlAttribute(name = "ResetAt")
66      @XmlSchemaType(name = "dateTime")
67      protected Calendar resetAt;
68      @XmlAttribute(name = "LastUpdated")
69      @XmlSchemaType(name = "dateTime")
70      protected Calendar lastUpdated;
71      @XmlAttribute(name = "Duration")
72      protected Duration duration;
73      @XmlAnyAttribute
74      private Map<QName, String> otherAttributes = new HashMap<QName, String>();
75  
76      /**
77       * Gets the value of the value property.
78       * 
79       * @return
80       *     possible object is
81       *     {@link BigInteger }
82       *     
83       */
84      public BigInteger getValue() {
85          return value;
86      }
87  
88      /**
89       * Sets the value of the value property.
90       * 
91       * @param value
92       *     allowed object is
93       *     {@link BigInteger }
94       *     
95       */
96      public void setValue(BigInteger value) {
97          this.value = value;
98      }
99  
100     /**
101      * Gets the value of the resetAt property.
102      * 
103      * @return
104      *     possible object is
105      *     {@link Calendar }
106      *     
107      */
108     public Calendar getResetAt() {
109         return resetAt;
110     }
111 
112     /**
113      * Sets the value of the resetAt property.
114      * 
115      * @param value
116      *     allowed object is
117      *     {@link Calendar }
118      *     
119      */
120     public void setResetAt(Calendar value) {
121         this.resetAt = value;
122     }
123 
124     /**
125      * Gets the value of the lastUpdated property.
126      * 
127      * @return
128      *     possible object is
129      *     {@link Calendar }
130      *     
131      */
132     public Calendar getLastUpdated() {
133         return lastUpdated;
134     }
135 
136     /**
137      * Sets the value of the lastUpdated property.
138      * 
139      * @param value
140      *     allowed object is
141      *     {@link Calendar }
142      *     
143      */
144     public void setLastUpdated(Calendar value) {
145         this.lastUpdated = value;
146     }
147 
148     /**
149      * Gets the value of the duration property.
150      * 
151      * @return
152      *     possible object is
153      *     {@link Duration }
154      *     
155      */
156     public Duration getDuration() {
157         return duration;
158     }
159 
160     /**
161      * Sets the value of the duration property.
162      * 
163      * @param value
164      *     allowed object is
165      *     {@link Duration }
166      *     
167      */
168     public void setDuration(Duration value) {
169         this.duration = value;
170     }
171 
172     /**
173      * Gets a map that contains attributes that aren't bound to any typed property on this class.
174      * 
175      * <p>
176      * the map is keyed by the name of the attribute and 
177      * the value is the string value of the attribute.
178      * 
179      * the map returned by this method is live, and you can add new attribute
180      * by updating the map directly. Because of this design, there's no setter.
181      * 
182      * 
183      * @return
184      *     always non-null
185      */
186     public Map<QName, String> getOtherAttributes() {
187         return otherAttributes;
188     }
189 
190 }