View Javadoc

1   // That is direct copy from jersey-1.8-atlassian branch. Used to support out-date XML namespace of grammars.xml
2   // see package-info.java for detailed explanations
3   
4   //
5   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
6   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
7   // Any modifications to this file will be lost upon recompilation of the source schema. 
8   // Generated on: 2011.06.24 at 12:17:19 PM CEST 
9   //
10  
11  
12  package com.atlassian.plugins.rest.doclet.generators.grammars;
13  
14  import java.util.ArrayList;
15  import java.util.HashMap;
16  import java.util.List;
17  import java.util.Map;
18  import javax.xml.bind.annotation.XmlAccessType;
19  import javax.xml.bind.annotation.XmlAccessorType;
20  import javax.xml.bind.annotation.XmlAnyAttribute;
21  import javax.xml.bind.annotation.XmlAttribute;
22  import javax.xml.bind.annotation.XmlRootElement;
23  import javax.xml.bind.annotation.XmlSchemaType;
24  import javax.xml.bind.annotation.XmlType;
25  import javax.xml.namespace.QName;
26  
27  
28  /**
29   * <p>Java class for anonymous complex type.
30   *
31   * <p>The following schema fragment specifies the expected content contained within this class.
32   *
33   * <pre>
34   * &lt;complexType>
35   *   &lt;complexContent>
36   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
37   *       &lt;sequence>
38   *         &lt;element ref="{http://research.sun.com/wadl/2006/10}doc" maxOccurs="unbounded" minOccurs="0"/>
39   *       &lt;/sequence>
40   *       &lt;attribute name="href" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
41   *       &lt;anyAttribute processContents='lax' namespace='##other'/>
42   *     &lt;/restriction>
43   *   &lt;/complexContent>
44   * &lt;/complexType>
45   * </pre>
46   */
47  @XmlAccessorType(XmlAccessType.FIELD)
48  @XmlType(name = "", propOrder = {
49          "doc"
50  })
51  @XmlRootElement(name = "include")
52  public class Include {
53  
54      protected List<Doc> doc;
55      @XmlAttribute
56      @XmlSchemaType(name = "anyURI")
57      protected String href;
58      @XmlAnyAttribute
59      private Map<QName, String> otherAttributes = new HashMap<QName, String>();
60  
61      /**
62       * Gets the value of the doc property.
63       *
64       * <p>
65       * This accessor method returns a reference to the live list,
66       * not a snapshot. Therefore any modification you make to the
67       * returned list will be present inside the JAXB object.
68       * This is why there is not a <CODE>set</CODE> method for the doc property.
69       *
70       * <p>
71       * For example, to add a new item, do as follows:
72       * <pre>
73       *    getDoc().add(newItem);
74       * </pre>
75       *
76       *
77       * <p>
78       * Objects of the following type(s) are allowed in the list
79       * {@link Doc }
80       */
81      public List<Doc> getDoc() {
82          if (doc == null) {
83              doc = new ArrayList<Doc>();
84          }
85          return this.doc;
86      }
87  
88      /**
89       * Gets the value of the href property.
90       *
91       * @return possible object is
92       * {@link String }
93       */
94      public String getHref() {
95          return href;
96      }
97  
98      /**
99       * Sets the value of the href property.
100      *
101      * @param value allowed object is
102      *              {@link String }
103      */
104     public void setHref(String value) {
105         this.href = value;
106     }
107 
108     /**
109      * Gets a map that contains attributes that aren't bound to any typed property on this class.
110      *
111      * <p>
112      * the map is keyed by the name of the attribute and
113      * the value is the string value of the attribute.
114      *
115      * the map returned by this method is live, and you can add new attribute
116      * by updating the map directly. Because of this design, there's no setter.
117      *
118      * @return always non-null
119      */
120     public Map<QName, String> getOtherAttributes() {
121         return otherAttributes;
122     }
123 
124 }