Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:53

0001 // This file is generated, don't edit it!!
0002 
0003 #if !defined(XERCESC_INCLUDE_GUARD_ERRHEADER_XMLErrs)
0004 #define XERCESC_INCLUDE_GUARD_ERRHEADER_XMLErrs
0005 
0006 #include <xercesc/framework/XMLErrorReporter.hpp>
0007 #include <xercesc/util/XercesDefs.hpp>
0008 #include <xercesc/dom/DOMError.hpp>
0009 
0010 XERCES_CPP_NAMESPACE_BEGIN
0011 
0012 // Ignore warning about private constructor
0013 #if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5))
0014 #  pragma GCC diagnostic push
0015 #  pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
0016 #endif
0017 
0018 class XMLErrs
0019 {
0020 public :
0021     enum Codes
0022     {
0023         NoError                            = 0
0024       , W_LowBounds                        = 1
0025       , NotationAlreadyExists              = 2
0026       , AttListAlreadyExists               = 3
0027       , ContradictoryEncoding              = 4
0028       , UndeclaredElemInCM                 = 5
0029       , UndeclaredElemInAttList            = 6
0030       , XMLException_Warning               = 7
0031       , XIncludeResourceErrorWarning       = 8
0032       , XIncludeCannotOpenFile             = 9
0033       , XIncludeIncludeFailedResourceError   = 10
0034       , W_HighBounds                       = 11
0035       , E_LowBounds                        = 12
0036       , FeatureUnsupported                 = 13
0037       , TopLevelNoNameComplexType          = 14
0038       , TopLevelNoNameAttribute            = 15
0039       , NoNameRefAttribute                 = 16
0040       , NoNameRefElement                   = 17
0041       , NoNameRefGroup                     = 18
0042       , NoNameRefAttGroup                  = 19
0043       , AnonComplexTypeWithName            = 20
0044       , AnonSimpleTypeWithName             = 21
0045       , InvalidElementContent              = 22
0046       , SimpleTypeContentError             = 23
0047       , ExpectedSimpleTypeInList           = 24
0048       , ListUnionRestrictionError          = 25
0049       , SimpleTypeDerivationByListError    = 26
0050       , ExpectedSimpleTypeInRestriction    = 27
0051       , DuplicateFacet                     = 28
0052       , ExpectedSimpleTypeInUnion          = 29
0053       , EmptySimpleTypeContent             = 30
0054       , InvalidSimpleContent               = 31
0055       , UnspecifiedBase                    = 32
0056       , InvalidComplexContent              = 33
0057       , SchemaElementContentError          = 34
0058       , ContentError                       = 35
0059       , UnknownSimpleType                  = 36
0060       , UnknownComplexType                 = 37
0061       , UnresolvedPrefix                   = 38
0062       , RefElementNotFound                 = 39
0063       , TypeNotFound                       = 40
0064       , TopLevelAttributeNotFound          = 41
0065       , InvalidChildInComplexType          = 42
0066       , BaseTypeNotFound                   = 43
0067       , DatatypeValidatorCreationError     = 44
0068       , InvalidChildFollowingSimpleContent   = 45
0069       , InvalidChildFollowingConplexContent   = 46
0070       , AttributeDefaultFixedValue         = 47
0071       , NotOptionalDefaultAttValue         = 48
0072       , DuplicateAttribute                 = 49
0073       , AttributeWithTypeAndSimpleType     = 50
0074       , AttributeSimpleTypeNotFound        = 51
0075       , ElementWithFixedAndDefault         = 52
0076       , InvalidDeclarationName             = 53
0077       , ElementWithTypeAndAnonType         = 54
0078       , NotSimpleOrMixedElement            = 55
0079       , DisallowedSimpleTypeExtension      = 56
0080       , InvalidSimpleContentBase           = 57
0081       , InvalidComplexTypeBase             = 58
0082       , InvalidChildInSimpleContent        = 59
0083       , InvalidChildInComplexContent       = 60
0084       , AnnotationError                    = 61
0085       , DisallowedBaseDerivation           = 62
0086       , InvalidBlockValue                  = 63
0087       , InvalidFinalValue                  = 64
0088       , InvalidSubstitutionGroupElement    = 65
0089       , SubstitutionGroupTypeMismatch      = 66
0090       , DuplicateElementDeclaration        = 67
0091       , InvalidAttValue                    = 68
0092       , AttributeRefContentError           = 69
0093       , DuplicateRefAttribute              = 70
0094       , ForbiddenDerivationByRestriction   = 71
0095       , ForbiddenDerivationByExtension     = 72
0096       , BaseNotComplexType                 = 73
0097       , ImportNamespaceDifference          = 74
0098       , DeclarationNoSchemaLocation        = 75
0099       , IncludeNamespaceDifference         = 76
0100       , OnlyAnnotationExpected             = 77
0101       , InvalidAttributeContent            = 78
0102       , AttributeRequiredGlobal            = 79
0103       , AttributeRequiredLocal             = 80
0104       , AttributeDisallowedGlobal          = 81
0105       , AttributeDisallowedLocal           = 82
0106       , InvalidMin2MaxOccurs               = 83
0107       , AnyAttributeContentError           = 84
0108       , NoNameGlobalElement                = 85
0109       , NoCircularDefinition               = 86
0110       , DuplicateGlobalType                = 87
0111       , DuplicateGlobalDeclaration         = 88
0112       , WS_CollapseExpected                = 89
0113       , Import_1_1                         = 90
0114       , Import_1_2                         = 91
0115       , ElemIDValueConstraint              = 92
0116       , NoNotationType                     = 93
0117       , EmptiableMixedContent              = 94
0118       , EmptyComplexRestrictionDerivation   = 95
0119       , MixedOrElementOnly                 = 96
0120       , InvalidContentRestriction          = 97
0121       , ForbiddenDerivation                = 98
0122       , AtomicItemType                     = 99
0123       , GroupContentError                  = 100
0124       , AttGroupContentError               = 101
0125       , MinMaxOnGroupChild                 = 102
0126       , DeclarationNotFound                = 103
0127       , AllContentLimited                  = 104
0128       , BadMinMaxAllCT                     = 105
0129       , BadMinMaxAllElem                   = 106
0130       , DuplicateAttInDerivation           = 107
0131       , NotExpressibleWildCardIntersection   = 108
0132       , BadAttDerivation_1                 = 109
0133       , BadAttDerivation_2                 = 110
0134       , BadAttDerivation_3                 = 111
0135       , BadAttDerivation_4                 = 112
0136       , BadAttDerivation_5                 = 113
0137       , BadAttDerivation_6                 = 114
0138       , BadAttDerivation_7                 = 115
0139       , BadAttDerivation_8                 = 116
0140       , BadAttDerivation_9                 = 117
0141       , AllContentError                    = 118
0142       , RedefineNamespaceDifference        = 119
0143       , Redefine_InvalidSimpleType         = 120
0144       , Redefine_InvalidSimpleTypeBase     = 121
0145       , Redefine_InvalidComplexType        = 122
0146       , Redefine_InvalidComplexTypeBase    = 123
0147       , Redefine_InvalidGroupMinMax        = 124
0148       , Redefine_DeclarationNotFound       = 125
0149       , Redefine_GroupRefCount             = 126
0150       , Redefine_AttGroupRefCount          = 127
0151       , Redefine_InvalidChild              = 128
0152       , Notation_DeclNotFound              = 129
0153       , IC_DuplicateDecl                   = 130
0154       , IC_BadContent                      = 131
0155       , IC_KeyRefReferNotFound             = 132
0156       , IC_KeyRefCardinality               = 133
0157       , IC_XPathExprMissing                = 134
0158       , AttUseCorrect                      = 135
0159       , AttDeclPropCorrect3                = 136
0160       , AttDeclPropCorrect5                = 137
0161       , AttGrpPropCorrect3                 = 138
0162       , InvalidTargetNSValue               = 139
0163       , XMLException_Error                 = 140
0164       , InvalidRedefine                    = 141
0165       , InvalidNSReference                 = 142
0166       , NotAllContent                      = 143
0167       , InvalidAnnotationContent           = 144
0168       , InvalidFacetName                   = 145
0169       , InvalidXMLSchemaRoot               = 146
0170       , CircularSubsGroup                  = 147
0171       , ELTSchemaNS                        = 148
0172       , InvalidAttTNS                      = 149
0173       , NSDeclInvalid                      = 150
0174       , DOMLevel1Node                      = 151
0175       , DuplicateAnyAttribute              = 152
0176       , AnyAttributeBeforeAttribute        = 153
0177       , E_HighBounds                       = 154
0178       , F_LowBounds                        = 155
0179       , EntityExpansionLimitExceeded       = 156
0180       , ExpectedCommentOrCDATA             = 157
0181       , ExpectedAttrName                   = 158
0182       , ExpectedNotationName               = 159
0183       , NoRepInMixed                       = 160
0184       , ExpectedDefAttrDecl                = 161
0185       , ExpectedEqSign                     = 162
0186       , ExpectedElementName                = 163
0187       , CommentsMustStartWith              = 164
0188       , InvalidDocumentStructure           = 165
0189       , ExpectedDeclString                 = 166
0190       , BadXMLVersion                      = 167
0191       , UnsupportedXMLVersion              = 168
0192       , UnterminatedXMLDecl                = 169
0193       , BadXMLEncoding                     = 170
0194       , BadStandalone                      = 171
0195       , UnterminatedComment                = 172
0196       , PINameExpected                     = 173
0197       , UnterminatedPI                     = 174
0198       , InvalidCharacter                   = 175
0199       , UnterminatedStartTag               = 176
0200       , ExpectedAttrValue                  = 177
0201       , UnterminatedEndTag                 = 178
0202       , ExpectedAttributeType              = 179
0203       , ExpectedEndOfTagX                  = 180
0204       , ExpectedMarkup                     = 181
0205       , NotValidAfterContent               = 182
0206       , ExpectedComment                    = 183
0207       , ExpectedCommentOrPI                = 184
0208       , ExpectedWhitespace                 = 185
0209       , NoRootElemInDOCTYPE                = 186
0210       , ExpectedQuotedString               = 187
0211       , ExpectedPublicId                   = 188
0212       , InvalidPublicIdChar                = 189
0213       , UnterminatedDOCTYPE                = 190
0214       , InvalidCharacterInIntSubset        = 191
0215       , UnexpectedWhitespace               = 192
0216       , InvalidCharacterInAttrValue        = 193
0217       , ExpectedMarkupDecl                 = 194
0218       , TextDeclNotLegalHere               = 195
0219       , ConditionalSectInIntSubset         = 196
0220       , ExpectedPEName                     = 197
0221       , UnterminatedEntityDecl             = 198
0222       , InvalidCharacterRef                = 199
0223       , UnterminatedCharRef                = 200
0224       , ExpectedEntityRefName              = 201
0225       , EntityNotFound                     = 202
0226       , NoUnparsedEntityRefs               = 203
0227       , UnterminatedEntityRef              = 204
0228       , RecursiveEntity                    = 205
0229       , PartialMarkupInEntity              = 206
0230       , UnterminatedElementDecl            = 207
0231       , ExpectedContentSpecExpr            = 208
0232       , ExpectedAsterisk                   = 209
0233       , UnterminatedContentModel           = 210
0234       , ExpectedSystemOrPublicId           = 211
0235       , UnterminatedNotationDecl           = 212
0236       , ExpectedSeqChoiceLeaf              = 213
0237       , ExpectedChoiceOrCloseParen         = 214
0238       , ExpectedSeqOrCloseParen            = 215
0239       , ExpectedEnumValue                  = 216
0240       , ExpectedEnumSepOrParen             = 217
0241       , UnterminatedEntityLiteral          = 218
0242       , MoreEndThanStartTags               = 219
0243       , ExpectedOpenParen                  = 220
0244       , AttrAlreadyUsedInSTag              = 221
0245       , BracketInAttrValue                 = 222
0246       , Expected2ndSurrogateChar           = 223
0247       , ExpectedEndOfConditional           = 224
0248       , ExpectedIncOrIgn                   = 225
0249       , ExpectedINCLUDEBracket             = 226
0250       , UnexpectedEOE                      = 227
0251       , PEPropogated                       = 228
0252       , ExtraCloseSquare                   = 229
0253       , PERefInMarkupInIntSubset           = 230
0254       , EntityPropogated                   = 231
0255       , ExpectedNumericalCharRef           = 232
0256       , ExpectedOpenSquareBracket          = 233
0257       , BadSequenceInCharData              = 234
0258       , IllegalSequenceInComment           = 235
0259       , UnterminatedCDATASection           = 236
0260       , ExpectedNDATA                      = 237
0261       , NDATANotValidForPE                 = 238
0262       , HexRadixMustBeLowerCase            = 239
0263       , DeclStringRep                      = 240
0264       , DeclStringsInWrongOrder            = 241
0265       , NoExtRefsInAttValue                = 242
0266       , XMLDeclMustBeLowerCase             = 243
0267       , ExpectedEntityValue                = 244
0268       , BadDigitForRadix                   = 245
0269       , EndedWithTagsOnStack               = 246
0270       , NestedCDATA                        = 247
0271       , UnknownPrefix                      = 248
0272       , PartialTagMarkupError              = 249
0273       , EmptyMainEntity                    = 250
0274       , CDATAOutsideOfContent              = 251
0275       , Unexpected2ndSurrogateChar         = 252
0276       , NoPIStartsWithXML                  = 253
0277       , XMLDeclMustBeFirst                 = 254
0278       , XMLVersionRequired                 = 255
0279       , StandaloneNotLegal                 = 256
0280       , EncodingRequired                   = 257
0281       , ColonNotLegalWithNS                = 258
0282       , XMLException_Fatal                 = 259
0283       , BadSchemaLocation                  = 260
0284       , SchemaScanFatalError               = 261
0285       , IllegalRefInStandalone             = 262
0286       , PEBetweenDecl                      = 263
0287       , NoEmptyStrNamespace                = 264
0288       , NoUseOfxmlnsAsPrefix               = 265
0289       , NoUseOfxmlnsURI                    = 266
0290       , PrefixXMLNotMatchXMLURI            = 267
0291       , XMLURINotMatchXMLPrefix            = 268
0292       , NoXMLNSAsElementPrefix             = 269
0293       , CT_SimpleTypeChildRequired         = 270
0294       , InvalidRootElemInDOCTYPE           = 271
0295       , InvalidElementName                 = 272
0296       , InvalidAttrName                    = 273
0297       , InvalidEntityRefName               = 274
0298       , DuplicateDocTypeDecl               = 275
0299       , XIncludeOrphanFallback             = 276
0300       , XIncludeNoHref                     = 277
0301       , XIncludeXPointerNotSupported       = 278
0302       , XIncludeInvalidParseVal            = 279
0303       , XIncludeMultipleFallbackElems      = 280
0304       , XIncludeIncludeFailedNoFallback    = 281
0305       , XIncludeCircularInclusionLoop      = 282
0306       , XIncludeCircularInclusionDocIncludesSelf   = 283
0307       , XIncludeDisallowedChild            = 284
0308       , XIncludeConflictingNotation        = 285
0309       , XIncludeConflictingEntity          = 286
0310       , F_HighBounds                       = 287
0311     };
0312 
0313     static bool isFatal(const XMLErrs::Codes toCheck)
0314     {
0315         return ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds));
0316     }
0317 
0318     static bool isWarning(const XMLErrs::Codes toCheck)
0319     {
0320         return ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds));
0321     }
0322 
0323     static bool isError(const XMLErrs::Codes toCheck)
0324     {
0325         return ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds));
0326     }
0327 
0328     static XMLErrorReporter::ErrTypes errorType(const XMLErrs::Codes toCheck)
0329     {
0330        if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
0331            return XMLErrorReporter::ErrType_Warning;
0332        else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
0333             return XMLErrorReporter::ErrType_Fatal;
0334        else if ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds))
0335             return XMLErrorReporter::ErrType_Error;
0336        return XMLErrorReporter::ErrTypes_Unknown;
0337     }
0338     static DOMError::ErrorSeverity  DOMErrorType(const XMLErrs::Codes toCheck)
0339     {
0340        if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
0341            return DOMError::DOM_SEVERITY_WARNING;
0342        else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
0343             return DOMError::DOM_SEVERITY_FATAL_ERROR;
0344        else return DOMError::DOM_SEVERITY_ERROR;
0345     }
0346 
0347 private:
0348     // -----------------------------------------------------------------------
0349     //  Unimplemented constructors and operators
0350     // -----------------------------------------------------------------------
0351     XMLErrs();
0352 };
0353 
0354 #if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5))
0355 #  pragma GCC diagnostic pop
0356 #endif
0357 
0358 XERCES_CPP_NAMESPACE_END
0359 
0360 #endif
0361