Main Page   Class Hierarchy   Compound List   File List   Compound Members  

XMLErrorCodes.hpp

00001 // This file is generated, don't edit it!!
00002 
00003 #if !defined(ERRHEADER_XMLErrs)
00004 #define ERRHEADER_XMLErrs
00005 
00006 #include <xercesc/framework/XMLErrorReporter.hpp>
00007 
00008 class XMLErrs
00009 {
00010 public :
00011     enum Codes
00012     {
00013         NoError                            = 0
00014       , W_LowBounds                        = 1
00015       , NotationAlreadyExists              = 2
00016       , AttListAlreadyExists               = 3
00017       , ContradictoryEncoding              = 4
00018       , UndeclaredElemInCM                 = 5
00019       , UndeclaredElemInAttList            = 6
00020       , XMLException_Warning               = 7
00021       , W_HighBounds                       = 8
00022       , E_LowBounds                        = 9
00023       , FeatureUnsupported                 = 10
00024       , TopLevelNoNameComplexType          = 11
00025       , TopLevelNoNameAttribute            = 12
00026       , NoNameRefAttribute                 = 13
00027       , GlobalNoNameElement                = 14
00028       , NoNameRefElement                   = 15
00029       , NoNameRefGroup                     = 16
00030       , NoNameRefAttGroup                  = 17
00031       , AnonComplexTypeWithName            = 18
00032       , AnonSimpleTypeWithName             = 19
00033       , InvalidElementContent              = 20
00034       , UntypedElement                     = 21
00035       , SimpleTypeContentError             = 22
00036       , ExpectedSimpleTypeInList           = 23
00037       , ListUnionRestrictionError          = 24
00038       , SimpleTypeDerivationByListError    = 25
00039       , ExpectedSimpleTypeInRestriction    = 26
00040       , DuplicateFacet                     = 27
00041       , ExpectedSimpleTypeInUnion          = 28
00042       , EmptySimpleTypeContent             = 29
00043       , InvalidSimpleContent               = 30
00044       , UnspecifiedBase                    = 31
00045       , InvalidComplexContent              = 32
00046       , SchemaElementContentError          = 33
00047       , ContentError                       = 34
00048       , UnknownSimpleType                  = 35
00049       , UnknownComplexType                 = 36
00050       , UnresolvedPrefix                   = 37
00051       , RefElementNotFound                 = 38
00052       , TypeNotFound                       = 39
00053       , TopLevelAttributeNotFound          = 40
00054       , InvalidChildInComplexType          = 41
00055       , BaseTypeNotFound                   = 42
00056       , NoAttributeInSchema                = 43
00057       , DatatypeValidatorCreationError     = 44
00058       , InvalidChildFollowingSimpleContent   = 45
00059       , InvalidChildFollowingConplexContent   = 46
00060       , InvalidComplexTypeBlockValue       = 47
00061       , InvalidComplexTypeFinalValue       = 48
00062       , AttributeDefaultFixedValue         = 49
00063       , NotOptionalDefaultAttValue         = 50
00064       , LocalAttributeWithNameRef          = 51
00065       , GlobalAttributeWithNameRef         = 52
00066       , DuplicateAttribute                 = 53
00067       , AttributeWithTypeAndSimpleType     = 54
00068       , AttributeSimpleTypeNotFound        = 55
00069       , ElementWithFixedAndDefault         = 56
00070       , DeclarationWithNameRef             = 57
00071       , BadAttWithRef                      = 58
00072       , InvalidDeclarationName             = 59
00073       , GlobalElementWithRef               = 60
00074       , ElementWithTypeAndAnonType         = 61
00075       , NotSimpleOrMixedElement            = 62
00076       , DisallowedSimpleTypeExtension      = 63
00077       , InvalidSimpleContentBase           = 64
00078       , InvalidComplexTypeBase             = 65
00079       , InvalidChildInSimpleContent        = 66
00080       , InvalidChildInComplexContent       = 67
00081       , AnnotationError                    = 68
00082       , DisallowedBaseDerivation           = 69
00083       , SubstitutionRepeated               = 70
00084       , UnionRepeated                      = 71
00085       , ExtensionRepeated                  = 72
00086       , ListRepeated                       = 73
00087       , RestrictionRepeated                = 74
00088       , InvalidBlockValue                  = 75
00089       , InvalidFinalValue                  = 76
00090       , InvalidSubstitutionGroupElement    = 77
00091       , SubstitutionGroupTypeMismatch      = 78
00092       , DuplicateElementDeclaration        = 79
00093       , InvalidElementBlockValue           = 80
00094       , InvalidElementFinalValue           = 81
00095       , InvalidAttValue                    = 82
00096       , AttributeRefContentError           = 83
00097       , DuplicateRefAttribute              = 84
00098       , ForbiddenDerivationByRestriction   = 85
00099       , ForbiddenDerivationByExtension     = 86
00100       , BaseNotComplexType                 = 87
00101       , ImportNamespaceDifference          = 88
00102       , ImportRootError                    = 89
00103       , DeclarationNoSchemaLocation        = 90
00104       , IncludeNamespaceDifference         = 91
00105       , OnlyAnnotationExpected             = 92
00106       , InvalidAttributeContent            = 93
00107       , AttributeRequired                  = 94
00108       , AttributeDisallowed                = 95
00109       , InvalidMin2MaxOccurs               = 96
00110       , AnyAttributeContentError           = 97
00111       , NoNameGlobalElement                = 98
00112       , NoCircularDefinition               = 99
00113       , DuplicateGlobalType                = 100
00114       , DuplicateGlobalDeclaration         = 101
00115       , WS_CollapseExpected                = 102
00116       , Import_1_1                         = 103
00117       , Import_1_2                         = 104
00118       , ElemIDValueConstraint              = 105
00119       , NoNotationType                     = 106
00120       , EmptiableMixedContent              = 107
00121       , EmptyComplexRestrictionDerivation   = 108
00122       , MixedOrElementOnly                 = 109
00123       , InvalidContentRestriction          = 110
00124       , ForbiddenDerivation                = 111
00125       , AtomicItemType                     = 112
00126       , MemberTypeNoUnion                  = 113
00127       , GroupContentError                  = 114
00128       , AttGroupContentError               = 115
00129       , MinMaxOnGroupChild                 = 116
00130       , DeclarationNotFound                = 117
00131       , AllContentLimited                  = 118
00132       , BadMinMaxAllCT                     = 119
00133       , BadMinMaxAllElem                   = 120
00134       , NoCircularAttGroup                 = 121
00135       , DuplicateAttInDerivation           = 122
00136       , NotExpressibleWildCardIntersection   = 123
00137       , BadAttDerivation_1                 = 124
00138       , BadAttDerivation_2                 = 125
00139       , BadAttDerivation_3                 = 126
00140       , BadAttDerivation_4                 = 127
00141       , BadAttDerivation_5                 = 128
00142       , BadAttDerivation_6                 = 129
00143       , BadAttDerivation_7                 = 130
00144       , BadAttDerivation_8                 = 131
00145       , AllContentError                    = 132
00146       , RedefineNamespaceDifference        = 133
00147       , Redefine_InvalidSimpleType         = 134
00148       , Redefine_InvalidSimpleTypeBase     = 135
00149       , Redefine_InvalidComplexType        = 136
00150       , Redefine_InvalidComplexTypeBase    = 137
00151       , Redefine_InvalidGroupMinMax        = 138
00152       , Redefine_DeclarationNotFound       = 139
00153       , Redefine_GroupRefCount             = 140
00154       , Redefine_AttGroupRefCount          = 141
00155       , Notation_InvalidDecl               = 142
00156       , Notation_DeclNotFound              = 143
00157       , IC_DuplicateDecl                   = 144
00158       , IC_BadContent                      = 145
00159       , IC_KeyRefReferNotFound             = 146
00160       , IC_KeyRefCardinality               = 147
00161       , IC_XPathExprMissing                = 148
00162       , PD_EmptyBase                       = 149
00163       , AttUseCorrect                      = 150
00164       , AttDeclPropCorrect3                = 151
00165       , AttDeclPropCorrect5                = 152
00166       , AttGrpPropCorrect3                 = 153
00167       , InvalidTargetNSValue               = 154
00168       , DisplayErrorMessage                = 155
00169       , XMLException_Error                 = 156
00170       , InvalidRedefine                    = 157
00171       , InvalidNSReference                 = 158
00172       , NotAllContent                      = 159
00173       , E_HighBounds                       = 160
00174       , F_LowBounds                        = 161
00175       , ExpectedCommentOrCDATA             = 162
00176       , ExpectedAttrName                   = 163
00177       , ExpectedNotationName               = 164
00178       , NoRepInMixed                       = 165
00179       , BadDefAttrDecl                     = 166
00180       , ExpectedDefAttrDecl                = 167
00181       , AttListSyntaxError                 = 168
00182       , ExpectedEqSign                     = 169
00183       , DupAttrName                        = 170
00184       , BadIdForXMLLangAttr                = 171
00185       , ExpectedElementName                = 172
00186       , MustStartWithXMLDecl               = 173
00187       , CommentsMustStartWith              = 174
00188       , InvalidDocumentStructure           = 175
00189       , ExpectedDeclString                 = 176
00190       , BadXMLVersion                      = 177
00191       , UnsupportedXMLVersion              = 178
00192       , UnterminatedXMLDecl                = 179
00193       , BadXMLEncoding                     = 180
00194       , BadStandalone                      = 181
00195       , UnterminatedComment                = 182
00196       , PINameExpected                     = 183
00197       , UnterminatedPI                     = 184
00198       , InvalidCharacter                   = 185
00199       , UnexpectedTextBeforeRoot           = 186
00200       , UnterminatedStartTag               = 187
00201       , ExpectedAttrValue                  = 188
00202       , UnterminatedEndTag                 = 189
00203       , ExpectedAttributeType              = 190
00204       , ExpectedEndOfTagX                  = 191
00205       , ExpectedMarkup                     = 192
00206       , NotValidAfterContent               = 193
00207       , ExpectedComment                    = 194
00208       , ExpectedCommentOrPI                = 195
00209       , ExpectedWhitespace                 = 196
00210       , NoRootElemInDOCTYPE                = 197
00211       , ExpectedQuotedString               = 198
00212       , ExpectedPublicId                   = 199
00213       , InvalidPublicIdChar                = 200
00214       , UnterminatedDOCTYPE                = 201
00215       , InvalidCharacterInIntSubset        = 202
00216       , ExpectedCDATA                      = 203
00217       , InvalidInitialNameChar             = 204
00218       , InvalidNameChar                    = 205
00219       , UnexpectedWhitespace               = 206
00220       , InvalidCharacterInAttrValue        = 207
00221       , ExpectedMarkupDecl                 = 208
00222       , TextDeclNotLegalHere               = 209
00223       , ConditionalSectInIntSubset         = 210
00224       , ExpectedPEName                     = 211
00225       , UnterminatedEntityDecl             = 212
00226       , InvalidCharacterRef                = 213
00227       , UnterminatedCharRef                = 214
00228       , ExpectedEntityRefName              = 215
00229       , EntityNotFound                     = 216
00230       , NoUnparsedEntityRefs               = 217
00231       , UnterminatedEntityRef              = 218
00232       , RecursiveEntity                    = 219
00233       , PartialMarkupInEntity              = 220
00234       , UnterminatedElementDecl            = 221
00235       , ExpectedContentSpecExpr            = 222
00236       , ExpectedAsterisk                   = 223
00237       , UnterminatedContentModel           = 224
00238       , ExpectedSystemId                   = 225
00239       , ExpectedSystemOrPublicId           = 226
00240       , UnterminatedNotationDecl           = 227
00241       , ExpectedSeqChoiceLeaf              = 228
00242       , ExpectedChoiceOrCloseParen         = 229
00243       , ExpectedSeqOrCloseParen            = 230
00244       , ExpectedEnumValue                  = 231
00245       , ExpectedEnumSepOrParen             = 232
00246       , UnterminatedEntityLiteral          = 233
00247       , MoreEndThanStartTags               = 234
00248       , ExpectedOpenParen                  = 235
00249       , AttrAlreadyUsedInSTag              = 236
00250       , BracketInAttrValue                 = 237
00251       , Expected2ndSurrogateChar           = 238
00252       , ExpectedEndOfConditional           = 239
00253       , ExpectedIncOrIgn                   = 240
00254       , ExpectedINCLUDEBracket             = 241
00255       , ExpectedTextDecl                   = 242
00256       , ExpectedXMLDecl                    = 243
00257       , UnexpectedEOE                      = 244
00258       , PEPropogated                       = 245
00259       , ExtraCloseSquare                   = 246
00260       , PERefInMarkupInIntSubset           = 247
00261       , EntityPropogated                   = 248
00262       , ExpectedNumericalCharRef           = 249
00263       , ExpectedOpenSquareBracket          = 250
00264       , BadSequenceInCharData              = 251
00265       , IllegalSequenceInComment           = 252
00266       , UnterminatedCDATASection           = 253
00267       , ExpectedNDATA                      = 254
00268       , NDATANotValidForPE                 = 255
00269       , HexRadixMustBeLowerCase            = 256
00270       , DeclStringRep                      = 257
00271       , DeclStringsInWrongOrder            = 258
00272       , NoExtRefsInAttValue                = 259
00273       , XMLDeclMustBeLowerCase             = 260
00274       , ExpectedEntityValue                = 261
00275       , BadDigitForRadix                   = 262
00276       , EndedWithTagsOnStack               = 263
00277       , AmbiguousContentModel              = 264
00278       , NestedCDATA                        = 265
00279       , UnknownPrefix                      = 266
00280       , PartialTagMarkupError              = 267
00281       , EmptyMainEntity                    = 268
00282       , CDATAOutsideOfContent              = 269
00283       , OnlyCharRefsAllowedHere            = 270
00284       , Unexpected2ndSurrogateChar         = 271
00285       , NoPIStartsWithXML                  = 272
00286       , XMLDeclMustBeFirst                 = 273
00287       , XMLVersionRequired                 = 274
00288       , StandaloneNotLegal                 = 275
00289       , EncodingRequired                   = 276
00290       , TooManyColonsInName                = 277
00291       , InvalidColonPos                    = 278
00292       , ColonNotLegalWithNS                = 279
00293       , SysException                       = 280
00294       , XMLException_Fatal                 = 281
00295       , UnexpectedEOF                      = 282
00296       , UnexpectedError                    = 283
00297       , BadSchemaLocation                  = 284
00298       , NoGrammarResolver                  = 285
00299       , SchemaScanFatalError               = 286
00300       , F_HighBounds                       = 287
00301     };
00302 
00303     static bool isFatal(const XMLErrs::Codes toCheck)
00304     {
00305         return ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds));
00306     }
00307 
00308     static bool isWarning(const XMLErrs::Codes toCheck)
00309     {
00310         return ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds));
00311     }
00312 
00313     static bool isError(const XMLErrs::Codes toCheck)
00314     {
00315         return ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds));
00316     }
00317 
00318     static XMLErrorReporter::ErrTypes errorType(const XMLErrs::Codes toCheck)
00319     {
00320        if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
00321            return XMLErrorReporter::ErrType_Warning;
00322        else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
00323             return XMLErrorReporter::ErrType_Fatal;
00324        else if ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds))
00325             return XMLErrorReporter::ErrType_Error;
00326        return XMLErrorReporter::ErrTypes_Unknown;
00327     }
00328 };
00329 #endif
00330 

Generated on Tue Nov 19 09:36:35 2002 by doxygen1.3-rc1