1
2 package org.miloss.fgsms.services.interfaces.dataaccessservice;
3
4 import java.io.Serializable;
5 import java.util.ArrayList;
6 import java.util.List;
7 import javax.xml.bind.annotation.XmlAccessType;
8 import javax.xml.bind.annotation.XmlAccessorType;
9 import javax.xml.bind.annotation.XmlElement;
10 import javax.xml.bind.annotation.XmlType;
11 import javax.xml.datatype.Duration;
12
13
14 /**
15 * provides a simple wrapper providing action, duration and the statistics data. done to minimize network usage
16 *
17 * <p>Java class for QuickStatWrapper complex type.
18 *
19 * <p>The following schema fragment specifies the expected content contained within this class.
20 *
21 * <pre>
22 * <complexType name="QuickStatWrapper">
23 * <complexContent>
24 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
25 * <sequence>
26 * <element name="action" type="{http://www.w3.org/2001/XMLSchema}string"/>
27 * <element name="uptime" type="{http://www.w3.org/2001/XMLSchema}duration"/>
28 * <element name="QuickStatData" type="{urn:org:miloss:fgsms:services:interfaces:dataAccessService}QuickStatData" maxOccurs="unbounded"/>
29 * </sequence>
30 * </restriction>
31 * </complexContent>
32 * </complexType>
33 * </pre>
34 *
35 *
36 */
37 @XmlAccessorType(XmlAccessType.FIELD)
38 @XmlType(name = "QuickStatWrapper", propOrder = {
39 "action",
40 "uptime",
41 "quickStatData"
42 })
43 public class QuickStatWrapper
44 implements Serializable
45 {
46
47 private final static long serialVersionUID = 1L;
48 @XmlElement(required = true, nillable = true)
49 protected String action;
50 @XmlElement(required = true, nillable = true)
51 protected Duration uptime;
52 @XmlElement(name = "QuickStatData", required = false, nillable = true)
53 protected List<QuickStatData> quickStatData;
54
55 /**
56 * Gets the value of the action property.
57 *
58 * @return
59 * possible object is
60 * {@link String }
61 *
62 */
63 public String getAction() {
64 return action;
65 }
66
67 /**
68 * Sets the value of the action property.
69 *
70 * @param value
71 * allowed object is
72 * {@link String }
73 *
74 */
75 public void setAction(String value) {
76 this.action = value;
77 }
78
79 public boolean isSetAction() {
80 return (this.action!= null);
81 }
82
83 /**
84 * Gets the value of the uptime property.
85 *
86 * @return
87 * possible object is
88 * {@link Duration }
89 *
90 */
91 public Duration getUptime() {
92 return uptime;
93 }
94
95 /**
96 * Sets the value of the uptime property.
97 *
98 * @param value
99 * allowed object is
100 * {@link Duration }
101 *
102 */
103 public void setUptime(Duration value) {
104 this.uptime = value;
105 }
106
107 public boolean isSetUptime() {
108 return (this.uptime!= null);
109 }
110
111 /**
112 * Gets the value of the quickStatData property.
113 *
114 * <p>
115 * This accessor method returns a reference to the live list,
116 * not a snapshot. Therefore any modification you make to the
117 * returned list will be present inside the JAXB object.
118 * This is why there is not a <CODE>set</CODE> method for the quickStatData property.
119 *
120 * <p>
121 * For example, to add a new item, do as follows:
122 * <pre>
123 * getQuickStatData().add(newItem);
124 * </pre>
125 *
126 *
127 * <p>
128 * Objects of the following type(s) are allowed in the list
129 * {@link QuickStatData }
130 *
131 *
132 */
133 public List<QuickStatData> getQuickStatData() {
134 if (quickStatData == null) {
135 quickStatData = new ArrayList<QuickStatData>();
136 }
137 return this.quickStatData;
138 }
139
140 public boolean isSetQuickStatData() {
141 return ((this.quickStatData!= null)&&(!this.quickStatData.isEmpty()));
142 }
143
144 public void unsetQuickStatData() {
145 this.quickStatData = null;
146 }
147
148 }