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 #if !defined(XSCONSTANTS_HPP)
00037 #define XSCONSTANTS_HPP
00038
00039 #include <xercesc/util/RefVectorOf.hpp>
00040 #include <xercesc/util/RefArrayVectorOf.hpp>
00041
00042 XERCES_CPP_NAMESPACE_BEGIN
00043
00048
00049 class XSAnnotation;
00050 class XSAttributeUse;
00051 class XSFacet;
00052 class XSMultiValueFacet;
00053 class XSNamespaceItem;
00054 class XSParticle;
00055 class XSSimpleTypeDefinition;
00056
00057
00058
00059
00060
00061 typedef RefVectorOf <XSAnnotation> XSAnnotationList;
00062 typedef RefVectorOf <XSAttributeUse> XSAttributeUseList;
00063 typedef RefVectorOf <XSFacet> XSFacetList;
00064 typedef RefVectorOf <XSMultiValueFacet> XSMultiValueFacetList;
00065 typedef RefVectorOf <XSNamespaceItem> XSNamespaceItemList;
00066 typedef RefVectorOf <XSParticle> XSParticleList;
00067 typedef RefVectorOf <XSSimpleTypeDefinition> XSSimpleTypeDefinitionList;
00068 typedef RefArrayVectorOf <XMLCh> StringList;
00069
00070 class XSConstants
00071 {
00072 public:
00073
00074
00075 enum COMPONENT_TYPE {
00079 ATTRIBUTE_DECLARATION = 1,
00083 ELEMENT_DECLARATION = 2,
00087 TYPE_DEFINITION = 3,
00091 ATTRIBUTE_USE = 4,
00095 ATTRIBUTE_GROUP_DEFINITION= 5,
00099 MODEL_GROUP_DEFINITION = 6,
00103 MODEL_GROUP = 7,
00107 PARTICLE = 8,
00111 WILDCARD = 9,
00115 IDENTITY_CONSTRAINT = 10,
00119 NOTATION_DECLARATION = 11,
00123 ANNOTATION = 12,
00127 FACET = 13,
00128
00132 MULTIVALUE_FACET = 14
00133 };
00134
00135
00136 enum DERIVATION_TYPE {
00140 DERIVATION_NONE = 0,
00145 DERIVATION_EXTENSION = 1,
00150 DERIVATION_RESTRICTION = 2,
00154 DERIVATION_SUBSTITUTION = 4,
00158 DERIVATION_UNION = 8,
00162 DERIVATION_LIST = 16
00163 };
00164
00165
00166 enum SCOPE {
00173 SCOPE_ABSENT = 0,
00177 SCOPE_GLOBAL = 1,
00182 SCOPE_LOCAL = 2
00183 };
00184
00185
00186 enum VALUE_CONSTRAINT {
00190 VALUE_CONSTRAINT_NONE = 0,
00194 VALUE_CONSTRAINT_DEFAULT = 1,
00198 VALUE_CONSTRAINT_FIXED = 2
00199 };
00200
00201 private:
00202
00203
00204
00205 XSConstants();
00206 };
00207
00208 XERCES_CPP_NAMESPACE_END
00209
00210 #endif