1 // 2 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 3 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 4 // Any modifications to this file will be lost upon recompilation of the source schema. 5 // Generated on: 2013.05.27 at 06:54:03 PM EDT 6 // 7 8 9 package org.apache.juddi.v3.client.mapping.wadl; 10 11 import java.util.ArrayList; 12 import java.util.HashMap; 13 import java.util.List; 14 import java.util.Map; 15 import javax.xml.bind.annotation.XmlAccessType; 16 import javax.xml.bind.annotation.XmlAccessorType; 17 import javax.xml.bind.annotation.XmlAnyAttribute; 18 import javax.xml.bind.annotation.XmlAnyElement; 19 import javax.xml.bind.annotation.XmlAttribute; 20 import javax.xml.bind.annotation.XmlElement; 21 import javax.xml.bind.annotation.XmlElements; 22 import javax.xml.bind.annotation.XmlID; 23 import javax.xml.bind.annotation.XmlRootElement; 24 import javax.xml.bind.annotation.XmlSchemaType; 25 import javax.xml.bind.annotation.XmlType; 26 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 27 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 28 import javax.xml.namespace.QName; 29 import org.w3c.dom.Element; 30 31 32 /** 33 * <p>Java class for anonymous complex type. 34 * 35 * <p>The following schema fragment specifies the expected content contained within this class. 36 * 37 * <pre> 38 * <complexType> 39 * <complexContent> 40 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 41 * <sequence> 42 * <element ref="{http://wadl.dev.java.net/2009/02}doc" maxOccurs="unbounded" minOccurs="0"/> 43 * <element ref="{http://wadl.dev.java.net/2009/02}param" maxOccurs="unbounded" minOccurs="0"/> 44 * <choice maxOccurs="unbounded" minOccurs="0"> 45 * <element ref="{http://wadl.dev.java.net/2009/02}method"/> 46 * <element ref="{http://wadl.dev.java.net/2009/02}resource"/> 47 * </choice> 48 * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/> 49 * </sequence> 50 * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> 51 * <anyAttribute processContents='lax' namespace='##other'/> 52 * </restriction> 53 * </complexContent> 54 * </complexType> 55 * </pre> 56 * 57 * 58 */ 59 @XmlAccessorType(XmlAccessType.FIELD) 60 @XmlType(name = "", propOrder = { 61 "doc", 62 "param", 63 "methodOrResource", 64 "any" 65 }) 66 @XmlRootElement(name = "resource_type") 67 public class ResourceType { 68 69 protected List<Doc> doc; 70 protected List<Param> param; 71 @XmlElements({ 72 @XmlElement(name = "resource", type = Resource.class), 73 @XmlElement(name = "method", type = Method.class) 74 }) 75 protected List<Object> methodOrResource; 76 @XmlAnyElement(lax = true) 77 protected List<Object> any; 78 @XmlAttribute 79 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 80 @XmlID 81 @XmlSchemaType(name = "ID") 82 protected String id; 83 @XmlAnyAttribute 84 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 85 86 /** 87 * Gets the value of the doc property. 88 * 89 * <p> 90 * This accessor method returns a reference to the live list, 91 * not a snapshot. Therefore any modification you make to the 92 * returned list will be present inside the JAXB object. 93 * This is why there is not a <CODE>set</CODE> method for the doc property. 94 * 95 * <p> 96 * For example, to add a new item, do as follows: 97 * <pre> 98 * getDoc().add(newItem); 99 * </pre> 100 * 101 * 102 * <p> 103 * Objects of the following type(s) are allowed in the list 104 * {@link Doc } 105 * 106 * 107 */ 108 public List<Doc> getDoc() { 109 if (doc == null) { 110 doc = new ArrayList<Doc>(); 111 } 112 return this.doc; 113 } 114 115 /** 116 * Gets the value of the param property. 117 * 118 * <p> 119 * This accessor method returns a reference to the live list, 120 * not a snapshot. Therefore any modification you make to the 121 * returned list will be present inside the JAXB object. 122 * This is why there is not a <CODE>set</CODE> method for the param property. 123 * 124 * <p> 125 * For example, to add a new item, do as follows: 126 * <pre> 127 * getParam().add(newItem); 128 * </pre> 129 * 130 * 131 * <p> 132 * Objects of the following type(s) are allowed in the list 133 * {@link Param } 134 * 135 * 136 */ 137 public List<Param> getParam() { 138 if (param == null) { 139 param = new ArrayList<Param>(); 140 } 141 return this.param; 142 } 143 144 /** 145 * Gets the value of the methodOrResource property. 146 * 147 * <p> 148 * This accessor method returns a reference to the live list, 149 * not a snapshot. Therefore any modification you make to the 150 * returned list will be present inside the JAXB object. 151 * This is why there is not a <CODE>set</CODE> method for the methodOrResource property. 152 * 153 * <p> 154 * For example, to add a new item, do as follows: 155 * <pre> 156 * getMethodOrResource().add(newItem); 157 * </pre> 158 * 159 * 160 * <p> 161 * Objects of the following type(s) are allowed in the list 162 * {@link Resource } 163 * {@link Method } 164 * 165 * 166 */ 167 public List<Object> getMethodOrResource() { 168 if (methodOrResource == null) { 169 methodOrResource = new ArrayList<Object>(); 170 } 171 return this.methodOrResource; 172 } 173 174 /** 175 * Gets the value of the any property. 176 * 177 * <p> 178 * This accessor method returns a reference to the live list, 179 * not a snapshot. Therefore any modification you make to the 180 * returned list will be present inside the JAXB object. 181 * This is why there is not a <CODE>set</CODE> method for the any property. 182 * 183 * <p> 184 * For example, to add a new item, do as follows: 185 * <pre> 186 * getAny().add(newItem); 187 * </pre> 188 * 189 * 190 * <p> 191 * Objects of the following type(s) are allowed in the list 192 * {@link Element } 193 * {@link Object } 194 * 195 * 196 */ 197 public List<Object> getAny() { 198 if (any == null) { 199 any = new ArrayList<Object>(); 200 } 201 return this.any; 202 } 203 204 /** 205 * Gets the value of the id property. 206 * 207 * @return 208 * possible object is 209 * {@link String } 210 * 211 */ 212 public String getId() { 213 return id; 214 } 215 216 /** 217 * Sets the value of the id property. 218 * 219 * @param value 220 * allowed object is 221 * {@link String } 222 * 223 */ 224 public void setId(String value) { 225 this.id = value; 226 } 227 228 /** 229 * Gets a map that contains attributes that aren't bound to any typed property on this class. 230 * 231 * <p> 232 * the map is keyed by the name of the attribute and 233 * the value is the string value of the attribute. 234 * 235 * the map returned by this method is live, and you can add new attribute 236 * by updating the map directly. Because of this design, there's no setter. 237 * 238 * 239 * @return 240 * always non-null 241 */ 242 public Map<QName, String> getOtherAttributes() { 243 return otherAttributes; 244 } 245 246 }