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.util.HashMap;
25  import java.util.Map;
26  import javax.xml.bind.annotation.XmlAccessType;
27  import javax.xml.bind.annotation.XmlAccessorType;
28  import javax.xml.bind.annotation.XmlAnyAttribute;
29  import javax.xml.bind.annotation.XmlAttribute;
30  import javax.xml.bind.annotation.XmlSchemaType;
31  import javax.xml.bind.annotation.XmlType;
32  import javax.xml.bind.annotation.XmlValue;
33  import javax.xml.datatype.Duration;
34  import java.util.Calendar;
35  import javax.xml.namespace.QName;
36  
37  
38  /**
39   * <p>Java class for DurationMetric complex type.
40   * 
41   * <p>The following schema fragment specifies the expected content contained within this class.
42   * 
43   * <pre>
44   * &lt;complexType name="DurationMetric">
45   *   &lt;simpleContent>
46   *     &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>duration">
47   *       &lt;attGroup ref="{http://docs.oasis-open.org/wsdm/muws2-2.xsd}MetricAttributes"/>
48   *     &lt;/extension>
49   *   &lt;/simpleContent>
50   * &lt;/complexType>
51   * </pre>
52   * 
53   * 
54   */
55  @XmlAccessorType(XmlAccessType.FIELD)
56  @XmlType(name = "DurationMetric", propOrder = {
57      "value"
58  })
59  public class DurationMetric {
60  
61      @XmlValue
62      protected Duration value;
63      @XmlAttribute(name = "ResetAt")
64      @XmlSchemaType(name = "dateTime")
65      protected Calendar resetAt;
66      @XmlAttribute(name = "LastUpdated")
67      @XmlSchemaType(name = "dateTime")
68      protected Calendar lastUpdated;
69      @XmlAttribute(name = "Duration")
70      protected Duration duration;
71      @XmlAnyAttribute
72      private Map<QName, String> otherAttributes = new HashMap<QName, String>();
73  
74      /**
75       * Gets the value of the value property.
76       * 
77       * @return
78       *     possible object is
79       *     {@link Duration }
80       *     
81       */
82      public Duration getValue() {
83          return value;
84      }
85  
86      /**
87       * Sets the value of the value property.
88       * 
89       * @param value
90       *     allowed object is
91       *     {@link Duration }
92       *     
93       */
94      public void setValue(Duration value) {
95          this.value = value;
96      }
97  
98      /**
99       * Gets the value of the resetAt property.
100      * 
101      * @return
102      *     possible object is
103      *     {@link Calendar }
104      *     
105      */
106     public Calendar getResetAt() {
107         return resetAt;
108     }
109 
110     /**
111      * Sets the value of the resetAt property.
112      * 
113      * @param value
114      *     allowed object is
115      *     {@link Calendar }
116      *     
117      */
118     public void setResetAt(Calendar value) {
119         this.resetAt = value;
120     }
121 
122     /**
123      * Gets the value of the lastUpdated property.
124      * 
125      * @return
126      *     possible object is
127      *     {@link Calendar }
128      *     
129      */
130     public Calendar getLastUpdated() {
131         return lastUpdated;
132     }
133 
134     /**
135      * Sets the value of the lastUpdated property.
136      * 
137      * @param value
138      *     allowed object is
139      *     {@link Calendar }
140      *     
141      */
142     public void setLastUpdated(Calendar value) {
143         this.lastUpdated = value;
144     }
145 
146     /**
147      * Gets the value of the duration property.
148      * 
149      * @return
150      *     possible object is
151      *     {@link Duration }
152      *     
153      */
154     public Duration getDuration() {
155         return duration;
156     }
157 
158     /**
159      * Sets the value of the duration property.
160      * 
161      * @param value
162      *     allowed object is
163      *     {@link Duration }
164      *     
165      */
166     public void setDuration(Duration value) {
167         this.duration = value;
168     }
169 
170     /**
171      * Gets a map that contains attributes that aren't bound to any typed property on this class.
172      * 
173      * <p>
174      * the map is keyed by the name of the attribute and 
175      * the value is the string value of the attribute.
176      * 
177      * the map returned by this method is live, and you can add new attribute
178      * by updating the map directly. Because of this design, there's no setter.
179      * 
180      * 
181      * @return
182      *     always non-null
183      */
184     public Map<QName, String> getOtherAttributes() {
185         return otherAttributes;
186     }
187 
188 }