KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > xquark > xpath > NodeKind


1 /*
2  * This file belongs to the XQuark distribution.
3  * Copyright (C) 2003 Universite de Versailles Saint-Quentin.
4  * Copyright (C) 2003 XQuark Group.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307.
19  * You can also get it at http://www.gnu.org/licenses/lgpl.html
20  *
21  * For more information on this software, see http://www.xquark.org.
22  */

23
24 package org.xquark.xpath;
25
26
27 public class NodeKind {
28
29
30     /**
31      * The <code>NOKIND_TEST</code> kind contains a document test.
32      */

33     static public final byte NONE = 0x00;
34
35     /**
36      * The <code>ANYKIND_TEST</code> kind contains an any kind test.
37      */

38     static public final byte NODE = 0x01;
39
40     /**
41      * The <code>DOCUMENT_TEST</code> kind contains a document test.
42      */

43     static public final byte DOCUMENT = 0x02;
44
45     /**
46      * The <code>ATTRIBUTE_TEST</code> kind contains a attribute test.
47      */

48     static public final byte ATTRIBUTE = 0x03;
49
50     /**
51      * The <code>PI_TEST</code> kind contains a processing instruction test.
52      */

53     static public final byte PI = 0x04;
54
55     /**
56      * The <code>COMMENT_TEST</code> kind contains a comment test.
57      */

58     static public final byte COMMENT = 0x05;
59
60     /**
61      * The <code>TEXT_TEST</code> kind contains a text test.
62      */

63     static public final byte TEXT = 0x06;
64
65     /**
66      * The <code>ELEMENT_TEST</code> kind contains a element test.
67      */

68     static public final byte NAMESPACE = 0x07;
69
70     /**
71      * The <code>ELEMENT_TEST</code> kind contains a element test.
72      */

73     static public final byte ELEMENT = 0x08;
74
75     /**
76      * The string values of the different nodetest types
77      */

78     static public final String JavaDoc[] NODEKINDSTRINGS = {
79         "",
80         "node",
81         "document-node",
82         "attribute",
83         "processing-instruction",
84         "comment",
85         "text",
86         "namespace",
87         "element"
88     };
89
90
91 }
92
Popular Tags