KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xpath > compiler > PsuedoNames


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 /*
17  * $Id: PsuedoNames.java,v 1.5 2004/02/17 04:32:48 minchau Exp $
18  */

19 package org.apache.xpath.compiler;
20
21 /**
22  * This is used to represent names of nodes that may not be named, like a
23  * comment node.
24  */

25 public class PsuedoNames
26 {
27
28   /**
29    * Psuedo name for a wild card pattern ('*').
30    */

31   public static final String JavaDoc PSEUDONAME_ANY = "*";
32
33   /**
34    * Psuedo name for the root node.
35    */

36   public static final String JavaDoc PSEUDONAME_ROOT = "/";
37
38   /**
39    * Psuedo name for a text node.
40    */

41   public static final String JavaDoc PSEUDONAME_TEXT = "#text";
42
43   /**
44    * Psuedo name for a comment node.
45    */

46   public static final String JavaDoc PSEUDONAME_COMMENT = "#comment";
47
48   /**
49    * Psuedo name for a processing instruction node.
50    */

51   public static final String JavaDoc PSEUDONAME_PI = "#pi";
52
53   /**
54    * Psuedo name for an unknown type value.
55    */

56   public static final String JavaDoc PSEUDONAME_OTHER = "*";
57 }
58
Popular Tags