File indexing completed on 2025-01-18 10:14:53
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #if !defined(XERCESC_INCLUDE_GUARD_XMLSCHEMADESCRIPTION_HPP)
0023 #define XERCESC_INCLUDE_GUARD_XMLSCHEMADESCRIPTION_HPP
0024
0025 #include <xercesc/framework/XMLGrammarDescription.hpp>
0026 #include <xercesc/util/RefArrayVectorOf.hpp>
0027
0028 XERCES_CPP_NAMESPACE_BEGIN
0029
0030 typedef const XMLCh* const LocationHint;
0031
0032 class XMLPARSER_EXPORT XMLSchemaDescription : public XMLGrammarDescription
0033 {
0034 public :
0035
0036
0037
0038
0039
0040
0041
0042
0043 virtual ~XMLSchemaDescription();
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054 virtual Grammar::GrammarType getGrammarType() const
0055 {
0056 return Grammar::SchemaGrammarType;
0057 }
0058
0059
0060
0061
0062
0063
0064
0065 enum ContextType
0066 {
0067 CONTEXT_INCLUDE,
0068 CONTEXT_REDEFINE,
0069 CONTEXT_IMPORT,
0070 CONTEXT_PREPARSE,
0071 CONTEXT_INSTANCE,
0072 CONTEXT_ELEMENT,
0073 CONTEXT_ATTRIBUTE,
0074 CONTEXT_XSITYPE,
0075 CONTEXT_UNKNOWN
0076 };
0077
0078
0079
0080
0081
0082 virtual ContextType getContextType() const = 0;
0083
0084
0085
0086
0087
0088 virtual const XMLCh* getTargetNamespace() const = 0;
0089
0090
0091
0092
0093
0094 virtual const RefArrayVectorOf<XMLCh>* getLocationHints() const = 0;
0095
0096
0097
0098
0099
0100 virtual const QName* getTriggeringComponent() const = 0;
0101
0102
0103
0104
0105
0106 virtual const QName* getEnclosingElementName() const = 0;
0107
0108
0109
0110
0111
0112 virtual const XMLAttDef* getAttributes() const = 0;
0113
0114
0115
0116
0117
0118 virtual void setContextType(ContextType) = 0;
0119
0120
0121
0122
0123
0124 virtual void setTargetNamespace(const XMLCh* const) = 0;
0125
0126
0127
0128
0129
0130 virtual void setLocationHints(const XMLCh* const) = 0;
0131
0132
0133
0134
0135
0136 virtual void setTriggeringComponent(QName* const) = 0;
0137
0138
0139
0140
0141
0142 virtual void setEnclosingElementName(QName* const) = 0;
0143
0144
0145
0146
0147
0148 virtual void setAttributes(XMLAttDef* const) = 0;
0149
0150
0151
0152
0153
0154 DECL_XSERIALIZABLE(XMLSchemaDescription)
0155
0156 protected :
0157
0158
0159
0160
0161 XMLSchemaDescription(MemoryManager* const memMgr = XMLPlatformUtils::fgMemoryManager);
0162
0163
0164 private :
0165
0166
0167
0168
0169 XMLSchemaDescription(const XMLSchemaDescription& );
0170 XMLSchemaDescription& operator=(const XMLSchemaDescription& );
0171
0172
0173 };
0174
0175
0176 XERCES_CPP_NAMESPACE_END
0177
0178 #endif