00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082 #if !defined(XSWILDCARD_HPP)
00083 #define XSWILDCARD_HPP
00084
00085 #include <xercesc/framework/psvi/XSObject.hpp>
00086
00087 XERCES_CPP_NAMESPACE_BEGIN
00088
00096
00097 class XSAnnotation;
00098 class SchemaAttDef;
00099 class ContentSpecNode;
00100
00101 class XSWildcard : public XSObject
00102 {
00103 public:
00104
00105
00106 enum NAMESPACE_CONSTRAINT {
00110 NSCONSTRAINT_ANY = 1,
00114 NSCONSTRAINT_NOT = 2,
00118 NSCONSTRAINT_DERIVATION_LIST = 3
00119 };
00120
00121
00122 enum PROCESS_CONTENTS {
00127 PC_STRICT = 1,
00131 PC_SKIP = 2,
00138 PC_LAX = 3
00139 };
00140
00141
00142
00145
00154 XSWildcard
00155 (
00156 SchemaAttDef* const attWildCard
00157 , XSAnnotation* const annot
00158 , XSModel* const xsModel
00159 , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
00160 );
00161
00162 XSWildcard
00163 (
00164 const ContentSpecNode* const elmWildCard
00165 , XSAnnotation* const annot
00166 , XSModel* const xsModel
00167 , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
00168 );
00169
00171
00174 ~XSWildcard();
00176
00177
00181
00185 NAMESPACE_CONSTRAINT getConstraintType() const;
00186
00193 StringList *getNsConstraintList();
00194
00199 PROCESS_CONTENTS getProcessContents() const;
00200
00204 XSAnnotation *getAnnotation() const;
00205
00207
00208
00212
00214 private:
00215
00216
00217
00218
00219 XSWildcard(const XSWildcard&);
00220 XSWildcard & operator=(const XSWildcard &);
00221
00225 void buildNamespaceList(const ContentSpecNode* const rootNode);
00226
00227 protected:
00228
00229
00230
00231
00232 NAMESPACE_CONSTRAINT fConstraintType;
00233 PROCESS_CONTENTS fProcessContents;
00234 StringList* fNsConstraintList;
00235 XSAnnotation* fAnnotation;
00236 };
00237
00238 inline XSAnnotation *XSWildcard::getAnnotation() const
00239 {
00240 return fAnnotation;
00241 }
00242
00243 inline XSWildcard::PROCESS_CONTENTS XSWildcard::getProcessContents() const
00244 {
00245 return fProcessContents;
00246 }
00247
00248 inline StringList* XSWildcard::getNsConstraintList()
00249 {
00250 return fNsConstraintList;
00251 }
00252
00253 inline XSWildcard::NAMESPACE_CONSTRAINT XSWildcard::getConstraintType() const
00254 {
00255 return fConstraintType;
00256 }
00257
00258
00259 XERCES_CPP_NAMESPACE_END
00260
00261 #endif