XMLErrorCodes.hpp
上传用户:huihehuasu
上传日期:2007-01-10
资源大小:6948k
文件大小:15k
源码类别:

xml/soap/webservice

开发平台:

C/C++

  1. // This file is generated, don't edit it!!
  2. #if !defined(ERRHEADER_XMLErrs)
  3. #define ERRHEADER_XMLErrs
  4. #include <framework/XMLErrorReporter.hpp>
  5. class XMLErrs
  6. {
  7. public :
  8.     enum Codes
  9.     {
  10.         NoError                            = 0
  11.       , W_LowBounds                        = 1
  12.       , NotationAlreadyExists              = 2
  13.       , AttListAlreadyExists               = 3
  14.       , ContradictoryEncoding              = 4
  15.       , UndeclaredElemInCM                 = 5
  16.       , UndeclaredElemInAttList            = 6
  17.       , XMLException_Warning               = 7
  18.       , W_HighBounds                       = 8
  19.       , E_LowBounds                        = 9
  20.       , FeatureUnsupported                 = 10
  21.       , TopLevelNoNameComplexType          = 11
  22.       , TopLevelNoNameAttribute            = 12
  23.       , NoNameRefAttribute                 = 13
  24.       , GlobalNoNameElement                = 14
  25.       , NoNameRefElement                   = 15
  26.       , NoNameRefGroup                     = 16
  27.       , NoNameRefAttGroup                  = 17
  28.       , AnonComplexTypeWithName            = 18
  29.       , AnonSimpleTypeWithName             = 19
  30.       , InvalidElementContent              = 20
  31.       , UntypedElement                     = 21
  32.       , SimpleTypeContentError             = 22
  33.       , ExpectedSimpleTypeInList           = 23
  34.       , ListUnionRestrictionError          = 24
  35.       , SimpleTypeDerivationByListError    = 25
  36.       , ExpectedSimpleTypeInRestriction    = 26
  37.       , DuplicateFacet                     = 27
  38.       , ExpectedSimpleTypeInUnion          = 28
  39.       , EmptySimpleTypeContent             = 29
  40.       , InvalidSimpleContent               = 30
  41.       , UnspecifiedBase                    = 31
  42.       , InvalidComplexContent              = 32
  43.       , SchemaElementContentError          = 33
  44.       , ContentError                       = 34
  45.       , UnknownSimpleType                  = 35
  46.       , UnknownComplexType                 = 36
  47.       , UnresolvedPrefix                   = 37
  48.       , RefElementNotFound                 = 38
  49.       , TypeNotFound                       = 39
  50.       , TopLevelAttributeNotFound          = 40
  51.       , InvalidChildInComplexType          = 41
  52.       , BaseTypeNotFound                   = 42
  53.       , NoAttributeInSchema                = 43
  54.       , DatatypeValidatorCreationError     = 44
  55.       , InvalidChildFollowingSimpleContent   = 45
  56.       , InvalidChildFollowingConplexContent   = 46
  57.       , InvalidComplexTypeBlockValue       = 47
  58.       , InvalidComplexTypeFinalValue       = 48
  59.       , AttributeDefaultFixedValue         = 49
  60.       , NotOptionalDefaultAttValue         = 50
  61.       , LocalAttributeWithNameRef          = 51
  62.       , GlobalAttributeWithNameRef         = 52
  63.       , DuplicateAttribute                 = 53
  64.       , AttributeWithTypeAndSimpleType     = 54
  65.       , AttributeSimpleTypeNotFound        = 55
  66.       , ElementWithFixedAndDefault         = 56
  67.       , DeclarationWithNameRef             = 57
  68.       , BadAttWithRef                      = 58
  69.       , InvalidDeclarationName             = 59
  70.       , GlobalElementWithRef               = 60
  71.       , ElementWithTypeAndAnonType         = 61
  72.       , NotSimpleOrMixedElement            = 62
  73.       , DisallowedSimpleTypeExtension      = 63
  74.       , InvalidSimpleContentBase           = 64
  75.       , InvalidComplexTypeBase             = 65
  76.       , InvalidChildInSimpleContent        = 66
  77.       , InvalidChildInComplexContent       = 67
  78.       , AnnotationError                    = 68
  79.       , DisallowedBaseDerivation           = 69
  80.       , SubstitutionRepeated               = 70
  81.       , UnionRepeated                      = 71
  82.       , ExtensionRepeated                  = 72
  83.       , ListRepeated                       = 73
  84.       , RestrictionRepeated                = 74
  85.       , InvalidBlockValue                  = 75
  86.       , InvalidFinalValue                  = 76
  87.       , InvalidSubstitutionGroupElement    = 77
  88.       , SubstitutionGroupTypeMismatch      = 78
  89.       , DuplicateElementDeclaration        = 79
  90.       , InvalidElementBlockValue           = 80
  91.       , InvalidElementFinalValue           = 81
  92.       , InvalidAttValue                    = 82
  93.       , AttributeRefContentError           = 83
  94.       , DuplicateRefAttribute              = 84
  95.       , ForbiddenDerivationByRestriction   = 85
  96.       , ForbiddenDerivationByExtension     = 86
  97.       , BaseNotComplexType                 = 87
  98.       , ImportNamespaceDifference          = 88
  99.       , ImportRootError                    = 89
  100.       , DeclarationNoSchemaLocation        = 90
  101.       , IncludeNamespaceDifference         = 91
  102.       , OnlyAnnotationExpected             = 92
  103.       , InvalidAttributeContent            = 93
  104.       , AttributeRequired                  = 94
  105.       , AttributeDisallowed                = 95
  106.       , InvalidMin2MaxOccurs               = 96
  107.       , AnyAttributeContentError           = 97
  108.       , NoNameGlobalElement                = 98
  109.       , NoCircularDefinition               = 99
  110.       , DuplicateGlobalType                = 100
  111.       , DuplicateGlobalDeclaration         = 101
  112.       , WS_CollapseExpected                = 102
  113.       , Import_1_1                         = 103
  114.       , Import_1_2                         = 104
  115.       , ElemIDValueConstraint              = 105
  116.       , NoNotationType                     = 106
  117.       , EmptiableMixedContent              = 107
  118.       , EmptyComplexRestrictionDerivation   = 108
  119.       , MixedOrElementOnly                 = 109
  120.       , InvalidContentRestriction          = 110
  121.       , ForbiddenDerivation                = 111
  122.       , AtomicItemType                     = 112
  123.       , MemberTypeNoUnion                  = 113
  124.       , GroupContentError                  = 114
  125.       , AttGroupContentError               = 115
  126.       , MinMaxOnGroupChild                 = 116
  127.       , DeclarationNotFound                = 117
  128.       , AllContentLimited                  = 118
  129.       , BadMinMaxAllCT                     = 119
  130.       , BadMinMaxAllElem                   = 120
  131.       , NoCircularAttGroup                 = 121
  132.       , DuplicateAttInDerivation           = 122
  133.       , NotExpressibleWildCardIntersection   = 123
  134.       , BadAttDerivation_1                 = 124
  135.       , BadAttDerivation_2                 = 125
  136.       , BadAttDerivation_3                 = 126
  137.       , BadAttDerivation_4                 = 127
  138.       , BadAttDerivation_5                 = 128
  139.       , BadAttDerivation_6                 = 129
  140.       , BadAttDerivation_7                 = 130
  141.       , BadAttDerivation_8                 = 131
  142.       , AllContentError                    = 132
  143.       , RedefineNamespaceDifference        = 133
  144.       , Redefine_InvalidSimpleType         = 134
  145.       , Redefine_InvalidSimpleTypeBase     = 135
  146.       , Redefine_InvalidComplexType        = 136
  147.       , Redefine_InvalidComplexTypeBase    = 137
  148.       , Redefine_InvalidGroupMinMax        = 138
  149.       , Redefine_DeclarationNotFound       = 139
  150.       , Redefine_GroupRefCount             = 140
  151.       , Redefine_AttGroupRefCount          = 141
  152.       , Notation_InvalidDecl               = 142
  153.       , Notation_DeclNotFound              = 143
  154.       , IC_DuplicateDecl                   = 144
  155.       , IC_BadContent                      = 145
  156.       , IC_KeyRefReferNotFound             = 146
  157.       , IC_KeyRefCardinality               = 147
  158.       , IC_XPathExprMissing                = 148
  159.       , PD_EmptyBase                       = 149
  160.       , AttUseCorrect                      = 150
  161.       , AttDeclPropCorrect3                = 151
  162.       , AttDeclPropCorrect5                = 152
  163.       , AttGrpPropCorrect3                 = 153
  164.       , InvalidTargetNSValue               = 154
  165.       , DisplayErrorMessage                = 155
  166.       , XMLException_Error                 = 156
  167.       , E_HighBounds                       = 157
  168.       , F_LowBounds                        = 158
  169.       , ExpectedCommentOrCDATA             = 159
  170.       , ExpectedAttrName                   = 160
  171.       , ExpectedNotationName               = 161
  172.       , NoRepInMixed                       = 162
  173.       , BadDefAttrDecl                     = 163
  174.       , ExpectedDefAttrDecl                = 164
  175.       , AttListSyntaxError                 = 165
  176.       , ExpectedEqSign                     = 166
  177.       , DupAttrName                        = 167
  178.       , BadIdForXMLLangAttr                = 168
  179.       , ExpectedElementName                = 169
  180.       , MustStartWithXMLDecl               = 170
  181.       , CommentsMustStartWith              = 171
  182.       , InvalidDocumentStructure           = 172
  183.       , ExpectedDeclString                 = 173
  184.       , BadXMLVersion                      = 174
  185.       , UnsupportedXMLVersion              = 175
  186.       , UnterminatedXMLDecl                = 176
  187.       , BadXMLEncoding                     = 177
  188.       , BadStandalone                      = 178
  189.       , UnterminatedComment                = 179
  190.       , PINameExpected                     = 180
  191.       , UnterminatedPI                     = 181
  192.       , InvalidCharacter                   = 182
  193.       , UnexpectedTextBeforeRoot           = 183
  194.       , UnterminatedStartTag               = 184
  195.       , ExpectedAttrValue                  = 185
  196.       , UnterminatedEndTag                 = 186
  197.       , ExpectedAttributeType              = 187
  198.       , ExpectedEndOfTagX                  = 188
  199.       , ExpectedMarkup                     = 189
  200.       , NotValidAfterContent               = 190
  201.       , ExpectedComment                    = 191
  202.       , ExpectedCommentOrPI                = 192
  203.       , ExpectedWhitespace                 = 193
  204.       , NoRootElemInDOCTYPE                = 194
  205.       , ExpectedQuotedString               = 195
  206.       , ExpectedPublicId                   = 196
  207.       , InvalidPublicIdChar                = 197
  208.       , UnterminatedDOCTYPE                = 198
  209.       , InvalidCharacterInIntSubset        = 199
  210.       , ExpectedCDATA                      = 200
  211.       , InvalidInitialNameChar             = 201
  212.       , InvalidNameChar                    = 202
  213.       , UnexpectedWhitespace               = 203
  214.       , InvalidCharacterInAttrValue        = 204
  215.       , ExpectedMarkupDecl                 = 205
  216.       , TextDeclNotLegalHere               = 206
  217.       , ConditionalSectInIntSubset         = 207
  218.       , ExpectedPEName                     = 208
  219.       , UnterminatedEntityDecl             = 209
  220.       , InvalidCharacterRef                = 210
  221.       , UnterminatedCharRef                = 211
  222.       , ExpectedEntityRefName              = 212
  223.       , EntityNotFound                     = 213
  224.       , NoUnparsedEntityRefs               = 214
  225.       , UnterminatedEntityRef              = 215
  226.       , RecursiveEntity                    = 216
  227.       , PartialMarkupInEntity              = 217
  228.       , UnterminatedElementDecl            = 218
  229.       , ExpectedContentSpecExpr            = 219
  230.       , ExpectedAsterisk                   = 220
  231.       , UnterminatedContentModel           = 221
  232.       , ExpectedSystemId                   = 222
  233.       , ExpectedSystemOrPublicId           = 223
  234.       , UnterminatedNotationDecl           = 224
  235.       , ExpectedSeqChoiceLeaf              = 225
  236.       , ExpectedChoiceOrCloseParen         = 226
  237.       , ExpectedSeqOrCloseParen            = 227
  238.       , ExpectedEnumValue                  = 228
  239.       , ExpectedEnumSepOrParen             = 229
  240.       , UnterminatedEntityLiteral          = 230
  241.       , MoreEndThanStartTags               = 231
  242.       , ExpectedOpenParen                  = 232
  243.       , AttrAlreadyUsedInSTag              = 233
  244.       , BracketInAttrValue                 = 234
  245.       , Expected2ndSurrogateChar           = 235
  246.       , ExpectedEndOfConditional           = 236
  247.       , ExpectedIncOrIgn                   = 237
  248.       , ExpectedINCLUDEBracket             = 238
  249.       , ExpectedTextDecl                   = 239
  250.       , ExpectedXMLDecl                    = 240
  251.       , UnexpectedEOE                      = 241
  252.       , PEPropogated                       = 242
  253.       , ExtraCloseSquare                   = 243
  254.       , PERefInMarkupInIntSubset           = 244
  255.       , EntityPropogated                   = 245
  256.       , ExpectedNumericalCharRef           = 246
  257.       , ExpectedOpenSquareBracket          = 247
  258.       , BadSequenceInCharData              = 248
  259.       , IllegalSequenceInComment           = 249
  260.       , UnterminatedCDATASection           = 250
  261.       , ExpectedNDATA                      = 251
  262.       , NDATANotValidForPE                 = 252
  263.       , HexRadixMustBeLowerCase            = 253
  264.       , DeclStringRep                      = 254
  265.       , DeclStringsInWrongOrder            = 255
  266.       , NoExtRefsInAttValue                = 256
  267.       , XMLDeclMustBeLowerCase             = 257
  268.       , ExpectedEntityValue                = 258
  269.       , BadDigitForRadix                   = 259
  270.       , EndedWithTagsOnStack               = 260
  271.       , AmbiguousContentModel              = 261
  272.       , NestedCDATA                        = 262
  273.       , UnknownPrefix                      = 263
  274.       , PartialTagMarkupError              = 264
  275.       , EmptyMainEntity                    = 265
  276.       , CDATAOutsideOfContent              = 266
  277.       , OnlyCharRefsAllowedHere            = 267
  278.       , Unexpected2ndSurrogateChar         = 268
  279.       , NoPIStartsWithXML                  = 269
  280.       , XMLDeclMustBeFirst                 = 270
  281.       , XMLVersionRequired                 = 271
  282.       , StandaloneNotLegal                 = 272
  283.       , EncodingRequired                   = 273
  284.       , TooManyColonsInName                = 274
  285.       , InvalidColonPos                    = 275
  286.       , ColonNotLegalWithNS                = 276
  287.       , SysException                       = 277
  288.       , XMLException_Fatal                 = 278
  289.       , UnexpectedEOF                      = 279
  290.       , UnexpectedError                    = 280
  291.       , BadSchemaLocation                  = 281
  292.       , NoGrammarResolver                  = 282
  293.       , SchemaScanFatalError               = 283
  294.       , F_HighBounds                       = 284
  295.     };
  296.     static bool isFatal(const XMLErrs::Codes toCheck)
  297.     {
  298.         return ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds));
  299.     }
  300.     static bool isWarning(const XMLErrs::Codes toCheck)
  301.     {
  302.         return ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds));
  303.     }
  304.     static bool isError(const XMLErrs::Codes toCheck)
  305.     {
  306.         return ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds));
  307.     }
  308.     static XMLErrorReporter::ErrTypes errorType(const XMLErrs::Codes toCheck)
  309.     {
  310.        if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
  311.            return XMLErrorReporter::ErrType_Warning;
  312.        else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
  313.             return XMLErrorReporter::ErrType_Fatal;
  314.        else if ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds))
  315.             return XMLErrorReporter::ErrType_Error;
  316.        return XMLErrorReporter::ErrTypes_Unknown;
  317.     }
  318. };
  319. #endif