XMLValidityCodes.hpp
Go to the documentation of this file.
// This file is generated, don't edit it!!
#if !defined(XERCESC_INCLUDE_GUARD_ERRHEADER_XMLValid)
#define XERCESC_INCLUDE_GUARD_ERRHEADER_XMLValid
#include <xercesc/framework/XMLErrorReporter.hpp>
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/dom/DOMError.hpp>
XERCES_CPP_NAMESPACE_BEGIN
class XMLValid
{
public :
enum Codes
{
NoError = 0
, E_LowBounds = 1
, ElementNotDefined = 2
, AttNotDefined = 3
, NotationNotDeclared = 4
, RootElemNotLikeDocType = 5
, RequiredAttrNotProvided = 6
, ElementNotValidForContent = 7
, BadIDAttrDefType = 8
, InvalidEmptyAttValue = 9
, ElementAlreadyExists = 10
, MultipleIdAttrs = 11
, ReusedIDValue = 12
, IDNotDeclared = 13
, UnknownNotRefAttr = 14
, UndeclaredElemInDocType = 15
, EmptyNotValidForContent = 16
, AttNotDefinedForElement = 17
, BadEntityRefAttr = 18
, UnknownEntityRefAttr = 19
, ColonNotValidWithNS = 20
, NotEnoughElemsForCM = 21
, NoCharDataInCM = 22
, DoesNotMatchEnumList = 23
, AttrValNotName = 24
, NoMultipleValues = 25
, NotSameAsFixedValue = 26
, RepElemInMixed = 27
, FeatureUnsupported = 28
, GroupContentRestricted = 29
, UnknownBaseDatatype = 30
, NoContentForRef = 31
, DatatypeError = 32
, ProhibitedAttributePresent = 33
, IllegalXMLSpace = 34
, WrongTargetNamespace = 35
, SimpleTypeHasChild = 36
, NoDatatypeValidatorForSimpleType = 37
, GrammarNotFound = 38
, DisplayErrorMessage = 39
, NillNotAllowed = 40
, NilAttrNotEmpty = 41
, FixedDifferentFromActual = 42
, NoDatatypeValidatorForAttribute = 43
, GenericError = 44
, ElementNotQualified = 45
, ElementNotUnQualified = 46
, VC_IllegalRefInStandalone = 47
, NoDefAttForStandalone = 48
, NoAttNormForStandalone = 49
, NoWSForStandalone = 50
, VC_EntityNotFound = 51
, PartialMarkupInPE = 52
, DatatypeValidationFailure = 53
, UniqueParticleAttributionFail = 54
, NoAbstractInXsiType = 55
, NoDirectUseAbstractElement = 56
, NoUseAbstractType = 57
, BadXsiType = 58
, NonDerivedXsiType = 59
, ElemNoSubforBlock = 60
, TypeNoSubforBlock = 61
, AttributeNotQualified = 62
, AttributeNotUnQualified = 63
, IC_FieldMultipleMatch = 64
, IC_UnknownField = 65
, IC_AbsentKeyValue = 66
, IC_KeyNotEnoughValues = 67
, IC_KeyMatchesNillable = 68
, IC_DuplicateUnique = 69
, IC_DuplicateKey = 70
, IC_KeyRefOutOfScope = 71
, IC_KeyNotFound = 72
, NonWSContent = 73
, EmptyElemNotationAttr = 74
, EmptyElemHasContent = 75
, ElemOneNotationAttr = 76
, AttrDupToken = 77
, ElemChildrenHasInvalidWS = 78
, E_HighBounds = 79
, W_LowBounds = 80
, W_HighBounds = 81
, F_LowBounds = 82
, F_HighBounds = 83
};
static bool isFatal(const XMLValid::Codes toCheck)
{
return ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds));
}
static bool isWarning(const XMLValid::Codes toCheck)
{
return ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds));
}
static bool isError(const XMLValid::Codes toCheck)
{
return ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds));
}
static XMLErrorReporter::ErrTypes errorType(const XMLValid::Codes toCheck)
{
if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
return XMLErrorReporter::ErrType_Warning;
else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
return XMLErrorReporter::ErrType_Fatal;
else if ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds))
return XMLErrorReporter::ErrType_Error;
return XMLErrorReporter::ErrTypes_Unknown;
}
static DOMError::ErrorSeverity DOMErrorType(const XMLValid::Codes toCheck)
{
if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
return DOMError::DOM_SEVERITY_WARNING;
else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
return DOMError::DOM_SEVERITY_FATAL_ERROR;
else return DOMError::DOM_SEVERITY_ERROR;
}
private:
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
XMLValid();
};
XERCES_CPP_NAMESPACE_END
#endif
XMLValid::AttrDupToken
Definition: XMLValidityCodes.hpp:94
XMLValid::VC_EntityNotFound
Definition: XMLValidityCodes.hpp:68
XMLValid::FeatureUnsupported
Definition: XMLValidityCodes.hpp:45
XMLValid::W_HighBounds
Definition: XMLValidityCodes.hpp:98
XMLValid::IC_UnknownField
Definition: XMLValidityCodes.hpp:82
XMLValid::DatatypeValidationFailure
Definition: XMLValidityCodes.hpp:70
XMLValid::ElementAlreadyExists
Definition: XMLValidityCodes.hpp:27
XMLValid::NoWSForStandalone
Definition: XMLValidityCodes.hpp:67
DOMError::DOM_SEVERITY_WARNING
Definition: DOMError.hpp:101
XMLValid::EmptyNotValidForContent
Definition: XMLValidityCodes.hpp:33
XMLValid::NoMultipleValues
Definition: XMLValidityCodes.hpp:42
XMLValid::ElemNoSubforBlock
Definition: XMLValidityCodes.hpp:77
XMLValid::AttrValNotName
Definition: XMLValidityCodes.hpp:41
XMLValid::NotSameAsFixedValue
Definition: XMLValidityCodes.hpp:43
XMLValid::IC_KeyMatchesNillable
Definition: XMLValidityCodes.hpp:85
XMLValid::E_HighBounds
Definition: XMLValidityCodes.hpp:96
XMLErrorReporter::ErrTypes_Unknown
Definition: XMLErrorReporter.hpp:54
XMLValid::AttributeNotQualified
Definition: XMLValidityCodes.hpp:79
XMLValid::InvalidEmptyAttValue
Definition: XMLValidityCodes.hpp:26
XMLValid::SimpleTypeHasChild
Definition: XMLValidityCodes.hpp:53
XMLValid::UnknownEntityRefAttr
Definition: XMLValidityCodes.hpp:36
XMLValid::TypeNoSubforBlock
Definition: XMLValidityCodes.hpp:78
XMLValid::DatatypeError
Definition: XMLValidityCodes.hpp:49
XMLValid::ElementNotUnQualified
Definition: XMLValidityCodes.hpp:63
XMLValid::NoError
Definition: XMLValidityCodes.hpp:17
XMLValid::UndeclaredElemInDocType
Definition: XMLValidityCodes.hpp:32
XMLValid::FixedDifferentFromActual
Definition: XMLValidityCodes.hpp:59
XMLValid::NilAttrNotEmpty
Definition: XMLValidityCodes.hpp:58
XMLValid::NoAbstractInXsiType
Definition: XMLValidityCodes.hpp:72
XMLValid::isError
static bool isError(const XMLValid::Codes toCheck)
Definition: XMLValidityCodes.hpp:113
XMLValid::UnknownBaseDatatype
Definition: XMLValidityCodes.hpp:47
XercesDefs.hpp
XMLValid::DoesNotMatchEnumList
Definition: XMLValidityCodes.hpp:40
XMLErrorReporter::ErrType_Warning
Definition: XMLErrorReporter.hpp:50
XMLValid::NoDefAttForStandalone
Definition: XMLValidityCodes.hpp:65
XMLValid::ReusedIDValue
Definition: XMLValidityCodes.hpp:29
XMLValid::IC_KeyRefOutOfScope
Definition: XMLValidityCodes.hpp:88
XMLErrorReporter::ErrType_Error
Definition: XMLErrorReporter.hpp:51
XMLValid::NoUseAbstractType
Definition: XMLValidityCodes.hpp:74
XMLValid::ElemOneNotationAttr
Definition: XMLValidityCodes.hpp:93
DOMError::ErrorSeverity
ErrorSeverity
The severity of the error described by the DOMError.
Definition: DOMError.hpp:99
XMLValid::isWarning
static bool isWarning(const XMLValid::Codes toCheck)
Definition: XMLValidityCodes.hpp:108
XMLErrorReporter::ErrTypes
ErrTypes
Definition: XMLErrorReporter.hpp:48
DOMError::DOM_SEVERITY_ERROR
Definition: DOMError.hpp:102
XMLValid::IC_DuplicateKey
Definition: XMLValidityCodes.hpp:87
XMLValid::RepElemInMixed
Definition: XMLValidityCodes.hpp:44
XMLValid::IC_AbsentKeyValue
Definition: XMLValidityCodes.hpp:83
XMLValid::Codes
Codes
Definition: XMLValidityCodes.hpp:15
XMLValid::NotEnoughElemsForCM
Definition: XMLValidityCodes.hpp:38
XMLValid::DisplayErrorMessage
Definition: XMLValidityCodes.hpp:56
XMLValid::ElemChildrenHasInvalidWS
Definition: XMLValidityCodes.hpp:95
XMLValid::IC_FieldMultipleMatch
Definition: XMLValidityCodes.hpp:81
XMLValid::GenericError
Definition: XMLValidityCodes.hpp:61
XMLValid::ColonNotValidWithNS
Definition: XMLValidityCodes.hpp:37
XMLValid::NoDatatypeValidatorForSimpleType
Definition: XMLValidityCodes.hpp:54
XMLValid::AttributeNotUnQualified
Definition: XMLValidityCodes.hpp:80
XMLValid::NotationNotDeclared
Definition: XMLValidityCodes.hpp:21
XMLValid::BadXsiType
Definition: XMLValidityCodes.hpp:75
XMLValid::BadIDAttrDefType
Definition: XMLValidityCodes.hpp:25
XMLValid::ProhibitedAttributePresent
Definition: XMLValidityCodes.hpp:50
XMLValid::DOMErrorType
static DOMError::ErrorSeverity DOMErrorType(const XMLValid::Codes toCheck)
Definition: XMLValidityCodes.hpp:128
XMLValid::IC_KeyNotFound
Definition: XMLValidityCodes.hpp:89
XMLValid::AttNotDefined
Definition: XMLValidityCodes.hpp:20
XMLErrorReporter::ErrType_Fatal
Definition: XMLErrorReporter.hpp:52
XMLValid::errorType
static XMLErrorReporter::ErrTypes errorType(const XMLValid::Codes toCheck)
Definition: XMLValidityCodes.hpp:118
XMLValid::RequiredAttrNotProvided
Definition: XMLValidityCodes.hpp:23
XMLValid::ElementNotValidForContent
Definition: XMLValidityCodes.hpp:24
XMLValid::GroupContentRestricted
Definition: XMLValidityCodes.hpp:46
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
XMLValid::EmptyElemNotationAttr
Definition: XMLValidityCodes.hpp:91
XMLValid::IllegalXMLSpace
Definition: XMLValidityCodes.hpp:51
XMLValid::ElementNotDefined
Definition: XMLValidityCodes.hpp:19
XMLValid::IC_DuplicateUnique
Definition: XMLValidityCodes.hpp:86
XMLValid::MultipleIdAttrs
Definition: XMLValidityCodes.hpp:28
XMLValid::EmptyElemHasContent
Definition: XMLValidityCodes.hpp:92
XMLValid::UniqueParticleAttributionFail
Definition: XMLValidityCodes.hpp:71
XMLValid::NoDirectUseAbstractElement
Definition: XMLValidityCodes.hpp:73
XMLValid::NoAttNormForStandalone
Definition: XMLValidityCodes.hpp:66
XMLValid::RootElemNotLikeDocType
Definition: XMLValidityCodes.hpp:22
XMLValid::PartialMarkupInPE
Definition: XMLValidityCodes.hpp:69
XMLErrorReporter.hpp
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
XMLValid::NoContentForRef
Definition: XMLValidityCodes.hpp:48
XMLValid::NillNotAllowed
Definition: XMLValidityCodes.hpp:57
XMLValid::F_HighBounds
Definition: XMLValidityCodes.hpp:100
DOMError.hpp
XMLValid::NoDatatypeValidatorForAttribute
Definition: XMLValidityCodes.hpp:60
XMLValid::F_LowBounds
Definition: XMLValidityCodes.hpp:99
XMLValid
Definition: XMLValidityCodes.hpp:12
XMLValid::W_LowBounds
Definition: XMLValidityCodes.hpp:97
XMLValid::UnknownNotRefAttr
Definition: XMLValidityCodes.hpp:31
XMLValid::IC_KeyNotEnoughValues
Definition: XMLValidityCodes.hpp:84
XMLValid::VC_IllegalRefInStandalone
Definition: XMLValidityCodes.hpp:64
XMLValid::isFatal
static bool isFatal(const XMLValid::Codes toCheck)
Definition: XMLValidityCodes.hpp:103
XMLValid::WrongTargetNamespace
Definition: XMLValidityCodes.hpp:52
XMLValid::AttNotDefinedForElement
Definition: XMLValidityCodes.hpp:34
XMLValid::ElementNotQualified
Definition: XMLValidityCodes.hpp:62
DOMError::DOM_SEVERITY_FATAL_ERROR
Definition: DOMError.hpp:103
XMLValid::GrammarNotFound
Definition: XMLValidityCodes.hpp:55
XMLValid::IDNotDeclared
Definition: XMLValidityCodes.hpp:30
XMLValid::NoCharDataInCM
Definition: XMLValidityCodes.hpp:39
XMLValid::NonDerivedXsiType
Definition: XMLValidityCodes.hpp:76
XMLValid::NonWSContent
Definition: XMLValidityCodes.hpp:90
XMLValid::E_LowBounds
Definition: XMLValidityCodes.hpp:18
XMLValid::BadEntityRefAttr
Definition: XMLValidityCodes.hpp:35