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.tools.xpath;
10  
11  import javax.xml.bind.annotation.XmlAccessType;
12  import javax.xml.bind.annotation.XmlAccessorType;
13  import javax.xml.bind.annotation.XmlAttribute;
14  import javax.xml.bind.annotation.XmlRootElement;
15  import javax.xml.bind.annotation.XmlType;
16  import org.xmlhammer.model.tools.Tool;
17  
18  
19  /***
20   * <p>Java class for xpath element declaration.
21   * 
22   * <p>The following schema fragment specifies the expected content contained within this class.
23   * 
24   * <pre>
25   * &lt;element name="xpath">
26   *   &lt;complexType>
27   *     &lt;complexContent>
28   *       &lt;extension base="{http://www.xmlhammer.org/2007/tools}tool">
29   *         &lt;attribute name="context" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
30   *         &lt;attribute name="expression" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
31   *         &lt;attribute name="returnType" default="NODESET">
32   *           &lt;simpleType>
33   *             &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
34   *               &lt;enumeration value="NUMBER"/>
35   *               &lt;enumeration value="STRING"/>
36   *               &lt;enumeration value="BOOLEAN"/>
37   *               &lt;enumeration value="NODESET"/>
38   *               &lt;enumeration value="NODE"/>
39   *             &lt;/restriction>
40   *           &lt;/simpleType>
41   *         &lt;/attribute>
42   *       &lt;/extension>
43   *     &lt;/complexContent>
44   *   &lt;/complexType>
45   * &lt;/element>
46   * </pre>
47   * 
48   * 
49   */
50  @XmlAccessorType(XmlAccessType.FIELD)
51  @XmlType(name = "")
52  @XmlRootElement(name = "xpath")
53  public class XPath
54      extends Tool
55  {
56  
57      @XmlAttribute
58      protected String context;
59      @XmlAttribute(required = true)
60      protected String expression;
61      @XmlAttribute
62      protected String returnType;
63  
64      /***
65       * Gets the value of the context property.
66       * 
67       * @return
68       *     possible object is
69       *     {@link String }
70       *     
71       */
72      public String getContext() {
73          return context;
74      }
75  
76      /***
77       * Sets the value of the context property.
78       * 
79       * @param value
80       *     allowed object is
81       *     {@link String }
82       *     
83       */
84      public void setContext(String value) {
85          this.context = value;
86      }
87  
88      /***
89       * Gets the value of the expression property.
90       * 
91       * @return
92       *     possible object is
93       *     {@link String }
94       *     
95       */
96      public String getExpression() {
97          return expression;
98      }
99  
100     /***
101      * Sets the value of the expression property.
102      * 
103      * @param value
104      *     allowed object is
105      *     {@link String }
106      *     
107      */
108     public void setExpression(String value) {
109         this.expression = value;
110     }
111 
112     /***
113      * Gets the value of the returnType property.
114      * 
115      * @return
116      *     possible object is
117      *     {@link String }
118      *     
119      */
120     public String getReturnType() {
121         if (returnType == null) {
122             return "NODESET";
123         } else {
124             return returnType;
125         }
126     }
127 
128     /***
129      * Sets the value of the returnType property.
130      * 
131      * @param value
132      *     allowed object is
133      *     {@link String }
134      *     
135      */
136     public void setReturnType(String value) {
137         this.returnType = value;
138     }
139 
140 }