KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > util > XMLSymbols


1 /*
2  * Copyright 2002,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 package org.apache.xerces.util;
18
19 /**
20  * All internalized xml symbols. They can be compared using "==".
21  *
22  * @author Sandy Gao, IBM
23  * @version $Id: XMLSymbols.java,v 1.3 2004/02/24 23:15:53 mrglavas Exp $
24  */

25 public class XMLSymbols {
26     
27     // public constructor.
28
public XMLSymbols(){}
29     
30     //==========================
31
// Commonly used strings
32
//==========================
33

34     /**
35      * The empty string.
36      */

37     public final static String JavaDoc EMPTY_STRING = "".intern();
38
39     //==========================
40
// Namespace prefixes/uris
41
//==========================
42

43     /**
44      * The internalized "xml" prefix.
45      */

46     public final static String JavaDoc PREFIX_XML = "xml".intern();
47
48     /**
49      * The internalized "xmlns" prefix.
50      */

51     public final static String JavaDoc PREFIX_XMLNS = "xmlns".intern();
52
53     //==========================
54
// DTD symbols
55
//==========================
56

57     /** Symbol: "ANY". */
58     public static final String JavaDoc fANYSymbol = "ANY".intern();
59
60     /** Symbol: "CDATA". */
61     public static final String JavaDoc fCDATASymbol = "CDATA".intern();
62
63     /** Symbol: "ID". */
64     public static final String JavaDoc fIDSymbol = "ID".intern();
65
66     /** Symbol: "IDREF". */
67     public static final String JavaDoc fIDREFSymbol = "IDREF".intern();
68
69     /** Symbol: "IDREFS". */
70     public static final String JavaDoc fIDREFSSymbol = "IDREFS".intern();
71
72     /** Symbol: "ENTITY". */
73     public static final String JavaDoc fENTITYSymbol = "ENTITY".intern();
74
75     /** Symbol: "ENTITIES". */
76     public static final String JavaDoc fENTITIESSymbol = "ENTITIES".intern();
77
78     /** Symbol: "NMTOKEN". */
79     public static final String JavaDoc fNMTOKENSymbol = "NMTOKEN".intern();
80
81     /** Symbol: "NMTOKENS". */
82     public static final String JavaDoc fNMTOKENSSymbol = "NMTOKENS".intern();
83
84     /** Symbol: "NOTATION". */
85     public static final String JavaDoc fNOTATIONSymbol = "NOTATION".intern();
86
87     /** Symbol: "ENUMERATION". */
88     public static final String JavaDoc fENUMERATIONSymbol = "ENUMERATION".intern();
89
90     /** Symbol: "#IMPLIED. */
91     public static final String JavaDoc fIMPLIEDSymbol = "#IMPLIED".intern();
92
93     /** Symbol: "#REQUIRED". */
94     public static final String JavaDoc fREQUIREDSymbol = "#REQUIRED".intern();
95
96     /** Symbol: "#FIXED". */
97     public static final String JavaDoc fFIXEDSymbol = "#FIXED".intern();
98     
99     
100 }
101
Popular Tags