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