| API Docs for SAX and DOM |

- Main Page
- Classes
- Files
- Related Pages

# XMLUni.hpp

Go to the documentation of this file.

    00001 /*
    00002  * Licensed to the Apache Software Foundation (ASF) under one or more
    00003  * contributor license agreements.  See the NOTICE file distributed with
    00004  * this work for additional information regarding copyright ownership.
    00005  * The ASF licenses this file to You under the Apache License, Version 2.0
    00006  * (the "License"); you may not use this file except in compliance with
    00007  * the License.  You may obtain a copy of the License at
    00008  *
    00009  *      http://www.apache.org/licenses/LICENSE-2.0
    00010  *
    00011  * Unless required by applicable law or agreed to in writing, software
    00012  * distributed under the License is distributed on an "AS IS" BASIS,
    00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00014  * See the License for the specific language governing permissions and
    00015  * limitations under the License.
    00016  */
    00017
    00018 /*
    00019  * $Id: XMLUni.hpp 568078 2007-08-21 11:43:25Z amassari $
    00020  */
    00021
    00022
    00023 // ---------------------------------------------------------------------------
    00024 //  This file contains the grunt work constants for Unicode characters and
    00025 //  common Unicode constant strings. These cannot be created normally because
    00026 //  we have to compile on systems that cannot do the L"" style prefix. So
    00027 //  they must be created as constant values for Unicode code points and the
    00028 //  strings built up as arrays of those constants.
    00029 // ---------------------------------------------------------------------------
    00030
    00031 #if !defined(XMLUNI_HPP)
    00032 #define XMLUNI_HPP
    00033
    00034 #include <xercesc/util/XercesDefs.hpp>
    00035
    00036 XERCES_CPP_NAMESPACE_BEGIN
    00037
    00038 class  XMLUni
    00039 {
    00040 public :
    00041     // -----------------------------------------------------------------------
    00042     //  These are constant strings that are common in XML data. Because
    00043     //  of the limitation of the compilers we have to work with, these are
    00044     //  done as arrays of XMLCh characters, not as constant strings.
    00045     // -----------------------------------------------------------------------
    00046     static const XMLCh fgAnyString[];
    00047     static const XMLCh fgAttListString[];
    00048     static const XMLCh fgCommentString[];
    00049     static const XMLCh fgCDATAString[];
    00050     static const XMLCh fgDefaultString[];
    00051     static const XMLCh fgDocTypeString[];
    00052     static const XMLCh fgEBCDICEncodingString[];
    00053     static const XMLCh fgElemString[];
    00054     static const XMLCh fgEmptyString[];
    00055     static const XMLCh fgEncodingString[];
    00056     static const XMLCh fgEntitString[];
    00057     static const XMLCh fgEntityString[];
    00058     static const XMLCh fgEntitiesString[];
    00059     static const XMLCh fgEnumerationString[];
    00060     static const XMLCh fgExceptDomain[];
    00061     static const XMLCh fgFixedString[];
    00062     static const XMLCh fgIBM037EncodingString[];
    00063     static const XMLCh fgIBM037EncodingString2[];
    00064     static const XMLCh fgIBM1047EncodingString[];
    00065     static const XMLCh fgIBM1047EncodingString2[];
    00066     static const XMLCh fgIBM1140EncodingString[];
    00067     static const XMLCh fgIBM1140EncodingString2[];
    00068     static const XMLCh fgIBM1140EncodingString3[];
    00069     static const XMLCh fgIBM1140EncodingString4[];
    00070     static const XMLCh fgIESString[];
    00071     static const XMLCh fgIDString[];
    00072     static const XMLCh fgIDRefString[];
    00073     static const XMLCh fgIDRefsString[];
    00074     static const XMLCh fgImpliedString[];
    00075     static const XMLCh fgIgnoreString[];
    00076     static const XMLCh fgIncludeString[];
    00077     static const XMLCh fgISO88591EncodingString[];
    00078     static const XMLCh fgISO88591EncodingString2[];
    00079     static const XMLCh fgISO88591EncodingString3[];
    00080     static const XMLCh fgISO88591EncodingString4[];
    00081     static const XMLCh fgISO88591EncodingString5[];
    00082     static const XMLCh fgISO88591EncodingString6[];
    00083     static const XMLCh fgISO88591EncodingString7[];
    00084     static const XMLCh fgISO88591EncodingString8[];
    00085     static const XMLCh fgISO88591EncodingString9[];
    00086     static const XMLCh fgISO88591EncodingString10[];
    00087     static const XMLCh fgISO88591EncodingString11[];
    00088     static const XMLCh fgISO88591EncodingString12[];
    00089     static const XMLCh fgLocalHostString[];
    00090     static const XMLCh fgNoString[];
    00091     static const XMLCh fgNotationString[];
    00092     static const XMLCh fgNDATAString[];
    00093     static const XMLCh fgNmTokenString[];
    00094     static const XMLCh fgNmTokensString[];
    00095     static const XMLCh fgPCDATAString[];
    00096     static const XMLCh fgPIString[];
    00097     static const XMLCh fgPubIDString[];
    00098     static const XMLCh fgRefString[];
    00099     static const XMLCh fgRequiredString[];
    00100     static const XMLCh fgStandaloneString[];
    00101     static const XMLCh fgVersion1_0[];
    00102     static const XMLCh fgVersion1_1[];
    00103     static const XMLCh fgSysIDString[];
    00104     static const XMLCh fgUnknownURIName[];
    00105     static const XMLCh fgUCS4EncodingString[];
    00106     static const XMLCh fgUCS4EncodingString2[];
    00107     static const XMLCh fgUCS4EncodingString3[];
    00108     static const XMLCh fgUCS4EncodingString4[];
    00109     static const XMLCh fgUCS4BEncodingString[];
    00110     static const XMLCh fgUCS4BEncodingString2[];
    00111     static const XMLCh fgUCS4LEncodingString[];
    00112     static const XMLCh fgUCS4LEncodingString2[];
    00113     static const XMLCh fgUSASCIIEncodingString[];
    00114     static const XMLCh fgUSASCIIEncodingString2[];
    00115     static const XMLCh fgUSASCIIEncodingString3[];
    00116     static const XMLCh fgUSASCIIEncodingString4[];
    00117     static const XMLCh fgUTF8EncodingString[];
    00118     static const XMLCh fgUTF8EncodingString2[];
    00119     static const XMLCh fgUTF16EncodingString[];
    00120     static const XMLCh fgUTF16EncodingString2[];
    00121     static const XMLCh fgUTF16EncodingString3[];
    00122     static const XMLCh fgUTF16EncodingString4[];
    00123     static const XMLCh fgUTF16EncodingString5[];
    00124     static const XMLCh fgUTF16EncodingString6[];
    00125     static const XMLCh fgUTF16EncodingString7[];
    00126     static const XMLCh fgUTF16BEncodingString[];
    00127     static const XMLCh fgUTF16BEncodingString2[];
    00128     static const XMLCh fgUTF16LEncodingString[];
    00129     static const XMLCh fgUTF16LEncodingString2[];
    00130     static const XMLCh fgVersionString[];
    00131     static const XMLCh fgValidityDomain[];
    00132     static const XMLCh fgWin1252EncodingString[];
    00133     static const XMLCh fgXMLChEncodingString[];
    00134     static const XMLCh fgXMLDOMMsgDomain[];
    00135     static const XMLCh fgXMLString[];
    00136     static const XMLCh fgXMLStringSpace[];
    00137     static const XMLCh fgXMLStringHTab[];
    00138     static const XMLCh fgXMLStringCR[];
    00139     static const XMLCh fgXMLStringLF[];
    00140     static const XMLCh fgXMLStringSpaceU[];
    00141     static const XMLCh fgXMLStringHTabU[];
    00142     static const XMLCh fgXMLStringCRU[];
    00143     static const XMLCh fgXMLStringLFU[];
    00144     static const XMLCh fgXMLDeclString[];
    00145     static const XMLCh fgXMLDeclStringSpace[];
    00146     static const XMLCh fgXMLDeclStringHTab[];
    00147     static const XMLCh fgXMLDeclStringLF[];
    00148     static const XMLCh fgXMLDeclStringCR[];
    00149     static const XMLCh fgXMLDeclStringSpaceU[];
    00150     static const XMLCh fgXMLDeclStringHTabU[];
    00151     static const XMLCh fgXMLDeclStringLFU[];
    00152     static const XMLCh fgXMLDeclStringCRU[];
    00153     static const XMLCh fgXMLNSString[];
    00154     static const XMLCh fgXMLNSColonString[];
    00155     static const XMLCh fgXMLNSURIName[];
    00156     static const XMLCh fgXMLErrDomain[];
    00157     static const XMLCh fgXMLURIName[];
    00158     static const XMLCh fgInfosetURIName[];
    00159     static const XMLCh fgYesString[];
    00160     static const XMLCh fgZeroLenString[];
    00161     static const XMLCh fgDTDEntityString[];
    00162     static const XMLCh fgAmp[];
    00163     static const XMLCh fgLT[];
    00164     static const XMLCh fgGT[];
    00165     static const XMLCh fgQuot[];
    00166     static const XMLCh fgApos[];
    00167     static const XMLCh fgWFXMLScanner[];
    00168     static const XMLCh fgIGXMLScanner[];
    00169     static const XMLCh fgSGXMLScanner[];
    00170     static const XMLCh fgDGXMLScanner[];
    00171     static const XMLCh fgXSAXMLScanner[];
    00172     static const XMLCh fgCDataStart[];
    00173     static const XMLCh fgCDataEnd[];
    00174
    00175     // Exception Name
    00176     static const XMLCh fgArrayIndexOutOfBoundsException_Name[];
    00177     static const XMLCh fgEmptyStackException_Name[];
    00178     static const XMLCh fgIllegalArgumentException_Name[];
    00179     static const XMLCh fgInvalidCastException_Name[];
    00180     static const XMLCh fgIOException_Name[];
    00181     static const XMLCh fgNoSuchElementException_Name[];
    00182     static const XMLCh fgNullPointerException_Name[];
    00183     static const XMLCh fgXMLPlatformUtilsException_Name[];
    00184     static const XMLCh fgRuntimeException_Name[];
    00185     static const XMLCh fgTranscodingException_Name[];
    00186     static const XMLCh fgUnexpectedEOFException_Name[];
    00187     static const XMLCh fgUnsupportedEncodingException_Name[];
    00188     static const XMLCh fgUTFDataFormatException_Name[];
    00189     static const XMLCh fgNetAccessorException_Name[];
    00190     static const XMLCh fgMalformedURLException_Name[];
    00191     static const XMLCh fgNumberFormatException_Name[];
    00192     static const XMLCh fgParseException_Name[];
    00193     static const XMLCh fgInvalidDatatypeFacetException_Name[];
    00194     static const XMLCh fgInvalidDatatypeValueException_Name[];
    00195     static const XMLCh fgSchemaDateTimeException_Name[];
    00196     static const XMLCh fgXPathException_Name[];
    00197     static const XMLCh fgXSerializationException_Name[];
    00198
    00199     // Numerical String
    00200     static const XMLCh fgNegINFString[];
    00201     static const XMLCh fgNegZeroString[];
    00202     static const XMLCh fgPosZeroString[];
    00203     static const XMLCh fgPosINFString[];
    00204     static const XMLCh fgNaNString[];
    00205     static const XMLCh fgEString[];
    00206     static const XMLCh fgZeroString[];
    00207     static const XMLCh fgNullString[];
    00208
    00209     // Xerces features/properties names
    00210     static const XMLCh fgXercesDynamic[];
    00211     static const XMLCh fgXercesSchema[];
    00212     static const XMLCh fgXercesSchemaFullChecking[];
    00213     static const XMLCh fgXercesIdentityConstraintChecking[];
    00214     static const XMLCh fgXercesSchemaExternalSchemaLocation[];
    00215     static const XMLCh fgXercesSchemaExternalNoNameSpaceSchemaLocation[];
    00216     static const XMLCh fgXercesSecurityManager[];
    00217     static const XMLCh fgXercesLoadExternalDTD[];
    00218     static const XMLCh fgXercesContinueAfterFatalError[];
    00219     static const XMLCh fgXercesValidationErrorAsFatal[];
    00220     static const XMLCh fgXercesUserAdoptsDOMDocument[];
    00221     static const XMLCh fgXercesCacheGrammarFromParse[];
    00222     static const XMLCh fgXercesUseCachedGrammarInParse[];
    00223     static const XMLCh fgXercesScannerName[];
    00224     static const XMLCh fgXercesParserUseDocumentFromImplementation[];
    00225     static const XMLCh fgXercesCalculateSrcOfs[];
    00226     static const XMLCh fgXercesStandardUriConformant[];
    00227     static const XMLCh fgXercesDOMHasPSVIInfo[];
    00228     static const XMLCh fgXercesGenerateSyntheticAnnotations[];
    00229     static const XMLCh fgXercesValidateAnnotations[];
    00230     static const XMLCh fgXercesIgnoreCachedDTD[];
    00231     static const XMLCh fgXercesIgnoreAnnotations[];
    00232     static const XMLCh fgXercesDisableDefaultEntityResolution[];
    00233     static const XMLCh fgXercesSkipDTDValidation[];
    00234
    00235
    00236     // SAX2 features/properties names
    00237     static const XMLCh fgSAX2CoreValidation[];
    00238     static const XMLCh fgSAX2CoreNameSpaces[];
    00239     static const XMLCh fgSAX2CoreNameSpacePrefixes[];
    00240
    00241     // Introduced in DOM Level 3
    00242     // DOMBuilder features
    00243     static const XMLCh fgDOMCanonicalForm[];
    00244     static const XMLCh fgDOMCDATASections[];
    00245     static const XMLCh fgDOMComments[];
    00246     static const XMLCh fgDOMCharsetOverridesXMLEncoding[];
    00247     static const XMLCh fgDOMDatatypeNormalization[];
    00248     static const XMLCh fgDOMEntities[];
    00249     static const XMLCh fgDOMInfoset[];
    00250     static const XMLCh fgDOMNamespaces[];
    00251     static const XMLCh fgDOMNamespaceDeclarations[];
    00252     static const XMLCh fgDOMSupportedMediatypesOnly[];
    00253     static const XMLCh fgDOMValidateIfSchema[];
    00254     static const XMLCh fgDOMValidation[];
    00255     static const XMLCh fgDOMWhitespaceInElementContent[];
    00256
    00257     // Introduced in DOM Level 3
    00258     // DOMWriter feature
    00259     static const XMLCh fgDOMWRTCanonicalForm[];
    00260     static const XMLCh fgDOMWRTDiscardDefaultContent[];
    00261     static const XMLCh fgDOMWRTEntities[];
    00262     static const XMLCh fgDOMWRTFormatPrettyPrint[];
    00263     static const XMLCh fgDOMWRTNormalizeCharacters[];
    00264     static const XMLCh fgDOMWRTSplitCdataSections[];
    00265     static const XMLCh fgDOMWRTValidation[];
    00266     static const XMLCh fgDOMWRTWhitespaceInElementContent[];
    00267     static const XMLCh fgDOMWRTBOM[];
    00268     static const XMLCh fgDOMXMLDeclaration[];
    00269
    00270     // Private interface names
    00271     static const XMLCh fgXercescInterfacePSVITypeInfo[];
    00272     static const XMLCh fgXercescInterfaceDOMDocumentTypeImpl[];
    00273
    00274     // Locale
    00275     static const char  fgXercescDefaultLocale[];
    00276
    00277     // Default Exception String
    00278     static const XMLCh  fgDefErrMsg[];
    00279
    00280     // Datatype
    00281     static const XMLCh fgValueZero[];
    00282     static const XMLCh fgNegOne[];
    00283     static const XMLCh fgValueOne[];
    00284     static const XMLCh fgLongMaxInc[];
    00285     static const XMLCh fgLongMinInc[];
    00286     static const XMLCh fgIntMaxInc[];
    00287     static const XMLCh fgIntMinInc[];
    00288     static const XMLCh fgShortMaxInc[];
    00289     static const XMLCh fgShortMinInc[];
    00290     static const XMLCh fgByteMaxInc[];
    00291     static const XMLCh fgByteMinInc[];
    00292     static const XMLCh fgULongMaxInc[];
    00293     static const XMLCh fgUIntMaxInc[];
    00294     static const XMLCh fgUShortMaxInc[];
    00295     static const XMLCh fgUByteMaxInc[];
    00296     static const XMLCh fgLangPattern[];
    00297
    00298     static const XMLCh fgBooleanValueSpace[][8];
    00299     static const unsigned int fgBooleanValueSpaceArraySize;
    00300
    00301 private:
    00302     // -----------------------------------------------------------------------
    00303     //  Unimplemented constructors and operators
    00304     // -----------------------------------------------------------------------
    00305     XMLUni();
    00306 };
    00307
    00308 XERCES_CPP_NAMESPACE_END
    00309
    00310 #endif

Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved.