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 #if !defined(PSVIELEMENT_HPP)
00082 #define PSVIELEMENT_HPP
00083
00084 #include <xercesc/framework/psvi/PSVIItem.hpp>
00085
00086 XERCES_CPP_NAMESPACE_BEGIN
00087
00095
00096 class XSElementDeclaration;
00097 class XSNotationDeclaration;
00098 class XSModel;
00099
00100 class PSVIElement : public PSVIItem
00101 {
00102 public:
00103
00104
00105
00108
00114 PSVIElement( MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
00115
00117
00120 ~PSVIElement();
00122
00123
00127
00134 XSElementDeclaration *getElementDeclaration();
00135
00141 XSNotationDeclaration *getNotationDeclaration();
00142
00149 XSModel *getSchemaInformation();
00150
00156 XSTypeDefinition *getTypeDefinition();
00157
00167 XSSimpleTypeDefinition *getMemberTypeDefinition();
00168
00170
00171
00175 void reset
00176 (
00177 const VALIDITY_STATE validityState
00178 , const ASSESSMENT_TYPE assessmentType
00179 , const XMLCh* const validationContext
00180 , bool isSpecified
00181 , XSElementDeclaration* const elemDecl
00182 , XSTypeDefinition* const typeDef
00183 , XSSimpleTypeDefinition* const memberType
00184 , XSModel* const schemaInfo
00185 , const XMLCh* const defaultValue
00186 , const XMLCh* const normalizedValue = 0
00187 , XMLCh* const canonicalValue = 0
00188 , XSNotationDeclaration* const notationDecl = 0
00189 );
00190
00192
00193 private:
00194
00195
00196
00197
00198 PSVIElement(const PSVIElement&);
00199 PSVIElement & operator=(const PSVIElement &);
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211 XSElementDeclaration *fElementDecl;
00212 XSNotationDeclaration *fNotationDecl;
00213 XSModel *fSchemaInfo;
00214 };
00215
00216 inline XSElementDeclaration *PSVIElement::getElementDeclaration()
00217 {
00218 return fElementDecl;
00219 }
00220
00221 inline XSNotationDeclaration* PSVIElement::getNotationDeclaration()
00222 {
00223 return fNotationDecl;
00224 }
00225
00226 inline XSModel* PSVIElement::getSchemaInformation()
00227 {
00228 return fSchemaInfo;
00229 }
00230
00231 XERCES_CPP_NAMESPACE_END
00232
00233 #endif