001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017:
018: package org.apache.xerces.util;
019:
020: /**
021: * All internalized xml symbols. They can be compared using "==".
022: *
023: * @author Sandy Gao, IBM
024: * @version $Id: XMLSymbols.java 447241 2006-09-18 05:12:57Z mrglavas $
025: */
026: public class XMLSymbols {
027:
028: // public constructor.
029: public XMLSymbols() {
030: }
031:
032: //==========================
033: // Commonly used strings
034: //==========================
035:
036: /**
037: * The empty string.
038: */
039: public final static String EMPTY_STRING = "".intern();
040:
041: //==========================
042: // Namespace prefixes/uris
043: //==========================
044:
045: /**
046: * The internalized "xml" prefix.
047: */
048: public final static String PREFIX_XML = "xml".intern();
049:
050: /**
051: * The internalized "xmlns" prefix.
052: */
053: public final static String PREFIX_XMLNS = "xmlns".intern();
054:
055: //==========================
056: // DTD symbols
057: //==========================
058:
059: /** Symbol: "ANY". */
060: public static final String fANYSymbol = "ANY".intern();
061:
062: /** Symbol: "CDATA". */
063: public static final String fCDATASymbol = "CDATA".intern();
064:
065: /** Symbol: "ID". */
066: public static final String fIDSymbol = "ID".intern();
067:
068: /** Symbol: "IDREF". */
069: public static final String fIDREFSymbol = "IDREF".intern();
070:
071: /** Symbol: "IDREFS". */
072: public static final String fIDREFSSymbol = "IDREFS".intern();
073:
074: /** Symbol: "ENTITY". */
075: public static final String fENTITYSymbol = "ENTITY".intern();
076:
077: /** Symbol: "ENTITIES". */
078: public static final String fENTITIESSymbol = "ENTITIES".intern();
079:
080: /** Symbol: "NMTOKEN". */
081: public static final String fNMTOKENSymbol = "NMTOKEN".intern();
082:
083: /** Symbol: "NMTOKENS". */
084: public static final String fNMTOKENSSymbol = "NMTOKENS".intern();
085:
086: /** Symbol: "NOTATION". */
087: public static final String fNOTATIONSymbol = "NOTATION".intern();
088:
089: /** Symbol: "ENUMERATION". */
090: public static final String fENUMERATIONSymbol = "ENUMERATION"
091: .intern();
092:
093: /** Symbol: "#IMPLIED. */
094: public static final String fIMPLIEDSymbol = "#IMPLIED".intern();
095:
096: /** Symbol: "#REQUIRED". */
097: public static final String fREQUIREDSymbol = "#REQUIRED".intern();
098:
099: /** Symbol: "#FIXED". */
100: public static final String fFIXEDSymbol = "#FIXED".intern();
101:
102: }
|