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="EndTo" type="{http://schemas.xmlsoap.org/ws/2004/09/enumeration}AnyEPRType" minOccurs="0"/> 30 * <element name="Expires" type="{http://schemas.xmlsoap.org/ws/2004/09/enumeration}ExpirationType" minOccurs="0"/> 31 * <element name="Filter" type="{http://schemas.xmlsoap.org/ws/2004/09/enumeration}FilterType" 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 "endTo", 45 "expires", 46 "filter", 47 "any" 48 }) 49 @XmlRootElement(name = "Enumerate") 50 public class Enumerate { 51 52 @XmlElement(name = "EndTo") 53 protected AnyEPRType endTo; 54 @XmlElement(name = "Expires") 55 protected String expires; 56 @XmlElement(name = "Filter") 57 protected FilterType filter; 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 endTo property. 65 * 66 * @return 67 * possible object is 68 * {@link AnyEPRType } 69 * 70 */ 71 public AnyEPRType getEndTo() { 72 return endTo; 73 } 74 75 /** 76 * Sets the value of the endTo property. 77 * 78 * @param value 79 * allowed object is 80 * {@link AnyEPRType } 81 * 82 */ 83 public void setEndTo(AnyEPRType value) { 84 this.endTo = value; 85 } 86 87 /** 88 * Gets the value of the expires property. 89 * 90 * @return 91 * possible object is 92 * {@link String } 93 * 94 */ 95 public String getExpires() { 96 return expires; 97 } 98 99 /** 100 * Sets the value of the expires property. 101 * 102 * @param value 103 * allowed object is 104 * {@link String } 105 * 106 */ 107 public void setExpires(String value) { 108 this.expires = value; 109 } 110 111 /** 112 * Gets the value of the filter property. 113 * 114 * @return 115 * possible object is 116 * {@link FilterType } 117 * 118 */ 119 public FilterType getFilter() { 120 return filter; 121 } 122 123 /** 124 * Sets the value of the filter property. 125 * 126 * @param value 127 * allowed object is 128 * {@link FilterType } 129 * 130 */ 131 public void setFilter(FilterType value) { 132 this.filter = value; 133 } 134 135 /** 136 * Gets the value of the any property. 137 * 138 * <p>This accessor method returns a reference to the live list, 139 * not a snapshot. Therefore any modification you make to the 140 * returned list will be present inside the JAXB object. 141 * This is why there is not a <CODE>set</CODE> method for the any property.</p> 142 * 143 * <p> 144 * For example, to add a new item, do as follows: 145 * </p> 146 * <pre> 147 * getAny().add(newItem); 148 * </pre> 149 * 150 * 151 * <p> 152 * Objects of the following type(s) are allowed in the list 153 * {@link Object } 154 * {@link Element } 155 * </p> 156 * 157 * 158 * @return 159 * The value of the any property. 160 */ 161 public List<Object> getAny() { 162 if (any == null) { 163 any = new ArrayList<>(); 164 } 165 return this.any; 166 } 167 168 /** 169 * Gets a map that contains attributes that aren't bound to any typed property on this class. 170 * 171 * <p> 172 * the map is keyed by the name of the attribute and 173 * the value is the string value of the attribute. 174 * 175 * the map returned by this method is live, and you can add new attribute 176 * by updating the map directly. Because of this design, there's no setter. 177 * 178 * 179 * @return 180 * always non-null 181 */ 182 public Map<QName, String> getOtherAttributes() { 183 return otherAttributes; 184 } 185 186 }