01: /*
02: * Copyright 1999-2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: * Psuedo name for a wild card pattern ('*').
29: */
30: public static final String PSEUDONAME_ANY = "*";
31:
32: /**
33: * Psuedo name for the root node.
34: */
35: public static final String PSEUDONAME_ROOT = "/";
36:
37: /**
38: * Psuedo name for a text node.
39: */
40: public static final String PSEUDONAME_TEXT = "#text";
41:
42: /**
43: * Psuedo name for a comment node.
44: */
45: public static final String PSEUDONAME_COMMENT = "#comment";
46:
47: /**
48: * Psuedo name for a processing instruction node.
49: */
50: public static final String PSEUDONAME_PI = "#pi";
51:
52: /**
53: * Psuedo name for an unknown type value.
54: */
55: public static final String PSEUDONAME_OTHER = "*";
56: }
|