View Javadoc

1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs 
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: 2007.09.26 at 09:37:45 PM IST 
6   //
7   
8   
9   package org.xmlhammer.model.project;
10  
11  import java.util.ArrayList;
12  import java.util.List;
13  import javax.xml.bind.annotation.XmlAccessType;
14  import javax.xml.bind.annotation.XmlAccessorType;
15  import javax.xml.bind.annotation.XmlAttribute;
16  import javax.xml.bind.annotation.XmlElement;
17  import javax.xml.bind.annotation.XmlRootElement;
18  import javax.xml.bind.annotation.XmlType;
19  
20  
21  /***
22   * <p>Java class for parser element declaration.
23   * 
24   * <p>The following schema fragment specifies the expected content contained within this class.
25   * 
26   * <pre>
27   * &lt;element name="parser">
28   *   &lt;complexType>
29   *     &lt;complexContent>
30   *       &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
31   *         &lt;sequence maxOccurs="unbounded">
32   *           &lt;element ref="{http://www.xmlhammer.org/2007/project}source"/>
33   *         &lt;/sequence>
34   *         &lt;attribute name="language" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
35   *         &lt;attribute name="namespaceAware" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
36   *         &lt;attribute name="type" default="dom">
37   *           &lt;simpleType>
38   *             &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
39   *               &lt;enumeration value="dom"/>
40   *               &lt;enumeration value="sax"/>
41   *             &lt;/restriction>
42   *           &lt;/simpleType>
43   *         &lt;/attribute>
44   *         &lt;attribute name="validating" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
45   *         &lt;attribute name="xincludeAware" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
46   *       &lt;/restriction>
47   *     &lt;/complexContent>
48   *   &lt;/complexType>
49   * &lt;/element>
50   * </pre>
51   * 
52   * 
53   */
54  @XmlAccessorType(XmlAccessType.FIELD)
55  @XmlType(name = "", propOrder = {
56      "source"
57  })
58  @XmlRootElement(name = "parser")
59  public class Parser {
60  
61      @XmlElement(namespace = "http://www.xmlhammer.org/2007/project", required = true)
62      protected List<Source> source;
63      @XmlAttribute
64      protected java.lang.String language;
65      @XmlAttribute
66      protected java.lang.Boolean namespaceAware;
67      @XmlAttribute
68      protected java.lang.String type;
69      @XmlAttribute
70      protected java.lang.Boolean validating;
71      @XmlAttribute
72      protected java.lang.Boolean xincludeAware;
73  
74      /***
75       * Gets the value of the source property.
76       * 
77       * <p>
78       * This accessor method returns a reference to the live list,
79       * not a snapshot. Therefore any modification you make to the
80       * returned list will be present inside the JAXB object.
81       * This is why there is not a <CODE>set</CODE> method for the source property.
82       * 
83       * <p>
84       * For example, to add a new item, do as follows:
85       * <pre>
86       *    getSource().add(newItem);
87       * </pre>
88       * 
89       * 
90       * <p>
91       * Objects of the following type(s) are allowed in the list
92       * {@link Source }
93       * 
94       * 
95       */
96      public List<Source> getSource() {
97          if (source == null) {
98              source = new ArrayList<Source>();
99          }
100         return this.source;
101     }
102 
103     /***
104      * Gets the value of the language property.
105      * 
106      * @return
107      *     possible object is
108      *     {@link java.lang.String }
109      *     
110      */
111     public java.lang.String getLanguage() {
112         return language;
113     }
114 
115     /***
116      * Sets the value of the language property.
117      * 
118      * @param value
119      *     allowed object is
120      *     {@link java.lang.String }
121      *     
122      */
123     public void setLanguage(java.lang.String value) {
124         this.language = value;
125     }
126 
127     /***
128      * Gets the value of the namespaceAware property.
129      * 
130      * @return
131      *     possible object is
132      *     {@link java.lang.Boolean }
133      *     
134      */
135     public boolean isNamespaceAware() {
136         if (namespaceAware == null) {
137             return true;
138         } else {
139             return namespaceAware;
140         }
141     }
142 
143     /***
144      * Sets the value of the namespaceAware property.
145      * 
146      * @param value
147      *     allowed object is
148      *     {@link java.lang.Boolean }
149      *     
150      */
151     public void setNamespaceAware(java.lang.Boolean value) {
152         this.namespaceAware = value;
153     }
154 
155     /***
156      * Gets the value of the type property.
157      * 
158      * @return
159      *     possible object is
160      *     {@link java.lang.String }
161      *     
162      */
163     public java.lang.String getType() {
164         if (type == null) {
165             return "dom";
166         } else {
167             return type;
168         }
169     }
170 
171     /***
172      * Sets the value of the type property.
173      * 
174      * @param value
175      *     allowed object is
176      *     {@link java.lang.String }
177      *     
178      */
179     public void setType(java.lang.String value) {
180         this.type = value;
181     }
182 
183     /***
184      * Gets the value of the validating property.
185      * 
186      * @return
187      *     possible object is
188      *     {@link java.lang.Boolean }
189      *     
190      */
191     public boolean isValidating() {
192         if (validating == null) {
193             return false;
194         } else {
195             return validating;
196         }
197     }
198 
199     /***
200      * Sets the value of the validating property.
201      * 
202      * @param value
203      *     allowed object is
204      *     {@link java.lang.Boolean }
205      *     
206      */
207     public void setValidating(java.lang.Boolean value) {
208         this.validating = value;
209     }
210 
211     /***
212      * Gets the value of the xincludeAware property.
213      * 
214      * @return
215      *     possible object is
216      *     {@link java.lang.Boolean }
217      *     
218      */
219     public boolean isXincludeAware() {
220         if (xincludeAware == null) {
221             return false;
222         } else {
223             return xincludeAware;
224         }
225     }
226 
227     /***
228      * Sets the value of the xincludeAware property.
229      * 
230      * @param value
231      *     allowed object is
232      *     {@link java.lang.Boolean }
233      *     
234      */
235     public void setXincludeAware(java.lang.Boolean value) {
236         this.xincludeAware = value;
237     }
238 
239 }