View Javadoc
1   
2   package org.sentrysoftware.winrm.service.enumeration;
3   
4   import java.util.ArrayList;
5   import java.util.HashMap;
6   import java.util.List;
7   import java.util.Map;
8   import javax.xml.bind.annotation.XmlAccessType;
9   import javax.xml.bind.annotation.XmlAccessorType;
10  import javax.xml.bind.annotation.XmlAnyAttribute;
11  import javax.xml.bind.annotation.XmlAnyElement;
12  import javax.xml.bind.annotation.XmlElement;
13  import javax.xml.bind.annotation.XmlRootElement;
14  import javax.xml.bind.annotation.XmlType;
15  import javax.xml.namespace.QName;
16  import org.w3c.dom.Element;
17  
18  
19  /**
20   * <p>Java class for anonymous complex type.
21   * 
22   * <p>The following schema fragment specifies the expected content contained within this class.
23   * 
24   * <pre>
25   * &lt;complexType&gt;
26   *   &lt;complexContent&gt;
27   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
28   *       &lt;sequence&gt;
29   *         &lt;element name="Expires" type="{http://schemas.xmlsoap.org/ws/2004/09/enumeration}ExpirationType" minOccurs="0"/&gt;
30   *         &lt;element name="EnumerationContext" type="{http://schemas.xmlsoap.org/ws/2004/09/enumeration}EnumerationContextType"/&gt;
31   *         &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/&gt;
32   *       &lt;/sequence&gt;
33   *       &lt;anyAttribute processContents='lax' namespace='##other'/&gt;
34   *     &lt;/restriction&gt;
35   *   &lt;/complexContent&gt;
36   * &lt;/complexType&gt;
37   * </pre>
38   * 
39   * 
40   */
41  @XmlAccessorType(XmlAccessType.FIELD)
42  @XmlType(name = "", propOrder = {
43      "expires",
44      "enumerationContext",
45      "any"
46  })
47  @XmlRootElement(name = "EnumerateResponse")
48  public class EnumerateResponse {
49  
50      @XmlElement(name = "Expires")
51      protected String expires;
52      @XmlElement(name = "EnumerationContext", required = true)
53      protected EnumerationContextType enumerationContext;
54      @XmlAnyElement(lax = true)
55      protected List<Object> any;
56      @XmlAnyAttribute
57      private Map<QName, String> otherAttributes = new HashMap<QName, String>();
58  
59      /**
60       * Gets the value of the expires property.
61       * 
62       * @return
63       *     possible object is
64       *     {@link String }
65       *     
66       */
67      public String getExpires() {
68          return expires;
69      }
70  
71      /**
72       * Sets the value of the expires property.
73       * 
74       * @param value
75       *     allowed object is
76       *     {@link String }
77       *     
78       */
79      public void setExpires(String value) {
80          this.expires = value;
81      }
82  
83      /**
84       * Gets the value of the enumerationContext property.
85       * 
86       * @return
87       *     possible object is
88       *     {@link EnumerationContextType }
89       *     
90       */
91      public EnumerationContextType getEnumerationContext() {
92          return enumerationContext;
93      }
94  
95      /**
96       * Sets the value of the enumerationContext property.
97       * 
98       * @param value
99       *     allowed object is
100      *     {@link EnumerationContextType }
101      *     
102      */
103     public void setEnumerationContext(EnumerationContextType value) {
104         this.enumerationContext = value;
105     }
106 
107     /**
108      * Gets the value of the any property.
109      * 
110      * <p>
111      * This accessor method returns a reference to the live list,
112      * not a snapshot. Therefore any modification you make to the
113      * returned list will be present inside the JAXB object.
114      * This is why there is not a <CODE>set</CODE> method for the any property.
115      * 
116      * <p>
117      * For example, to add a new item, do as follows:
118      * <pre>
119      *    getAny().add(newItem);
120      * </pre>
121      * 
122      * 
123      * <p>
124      * Objects of the following type(s) are allowed in the list
125      * {@link Element }
126      * {@link Object }
127      * 
128      * 
129      */
130     public List<Object> getAny() {
131         if (any == null) {
132             any = new ArrayList<Object>();
133         }
134         return this.any;
135     }
136 
137     /**
138      * Gets a map that contains attributes that aren't bound to any typed property on this class.
139      * 
140      * <p>
141      * the map is keyed by the name of the attribute and 
142      * the value is the string value of the attribute.
143      * 
144      * the map returned by this method is live, and you can add new attribute
145      * by updating the map directly. Because of this design, there's no setter.
146      * 
147      * 
148      * @return
149      *     always non-null
150      */
151     public Map<QName, String> getOtherAttributes() {
152         return otherAttributes;
153     }
154 
155 }