KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > xpath > LocationStep


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.xml.xpath;
21
22
23 /**
24  * Represents a step in a location path.
25  *
26  * @author Enrico Lelina
27  * @version $Revision: 1.4 $
28  */

29 public interface LocationStep extends XPathExpression {
30
31     /** Axis: self */
32     public static final int AXIS_SELF = 1;
33
34     /** Axis: child */
35     public static final int AXIS_CHILD = 2;
36
37     /** Axis: parent */
38     public static final int AXIS_PARENT = 3;
39
40     /** Axis: ancestor */
41     public static final int AXIS_ANCESTOR = 4;
42
43     /** Axis: attribute */
44     public static final int AXIS_ATTRIBUTE = 5;
45
46     /** Axis: namespace */
47     public static final int AXIS_NAMESPACE = 6;
48
49     /** Axis: preceding */
50     public static final int AXIS_PRECEDING = 7;
51
52     /** Axis: following */
53     public static final int AXIS_FOLLOWING = 8;
54
55     /** Axis: descendant */
56     public static final int AXIS_DESCENDANT = 9;
57
58     /** Axis: ancestor or self */
59     public static final int AXIS_ANCESTOR_OR_SELF = 10;
60
61     /** Axis: descendant or self */
62     public static final int AXIS_DESCENDANT_OR_SELF = 11;
63
64     /** Axis: following sibling */
65     public static final int AXIS_FOLLOWING_SIBLING = 12;
66
67     /** Axis: preceding sibling */
68     public static final int AXIS_PRECEDING_SIBLING = 13;
69     
70     /** Node type test: node */
71     public static final int NODETYPE_NODE = 1;
72     
73     /** Node type test: text */
74     public static final int NODETYPE_TEXT = 2;
75     
76     /** Node type test: comment */
77     public static final int NODETYPE_COMMENT = 3;
78     
79     /** Node type test: processing instruction */
80     public static final int NODETYPE_PI = 4;
81     
82     
83     /**
84      * Gets the axis.
85      * @return the axis
86      */

87     int getAxis();
88     
89     
90     /**
91      * Sets the axis.
92      * @param axis the axis
93      */

94     void setAxis(int axis);
95     
96     
97     /**
98      * Gets the node test.
99      * @return the node test
100      */

101     StepNodeTest getNodeTest();
102     
103     
104     /**
105      * Sets the node test.
106      * @param nodeTest the node test
107      */

108     void setNodeTest(StepNodeTest nodeTest);
109     
110     
111     /**
112      * Gets the string representation.
113      * @return the string representation
114      */

115     String JavaDoc getString();
116
117     XPathPredicateExpression[] getPredicates();
118
119     void setPredicates(XPathPredicateExpression[] predicates);
120 }
121
Popular Tags