This file is indexed.

/usr/include/xercesc/framework/XMLValidityCodes.hpp is in libxerces-c-dev 3.1.1-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
// 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