Xerces-C++: XSComplexTypeDefinition.hpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22#if !defined(XERCESC_INCLUDE_GUARD_XSCOMPLEXTYPEDEFINITION_HPP)

23#define XERCESC_INCLUDE_GUARD_XSCOMPLEXTYPEDEFINITION_HPP

24

26

28

37

43class ComplexTypeInfo;

44

46{

47public:

48

49

56 CONTENTTYPE_EMPTY = 0,

61 CONTENTTYPE_SIMPLE = 1,

67 CONTENTTYPE_ELEMENT = 2,

71 CONTENTTYPE_MIXED = 3

73

74

75

78

93 (

94 ComplexTypeInfo* const complexTypeInfo

103 );

104

106

111

112

116

123

130

135

139 XSWildcard *getAttributeWildcard() const;

140

148

154

160

169

175 short getProhibitedSubstitutions() const;

176

181

187

193

200

206

212

221

223

224

228

229

231

232private:

233

238 friend class XSObjectFactory;

239

240

241

242

245

246protected:

247

248

249

250

258};

259

260

265

270

275

280

285

286inline void

287XSComplexTypeDefinition::setBaseType(XSTypeDefinition* const xsBaseType)

288{

290}

291

293

294#endif

RefVectorOf< XSAnnotation > XSAnnotationList

Definition XSConstants.hpp:47

RefVectorOf< XSAttributeUse > XSAttributeUseList

Definition XSConstants.hpp:48

#define XMLPARSER_EXPORT

Definition XercesDefs.hpp:163

#define XERCES_CPP_NAMESPACE_BEGIN

Definition XercesDefs.hpp:112

#define XERCES_CPP_NAMESPACE_END

Definition XercesDefs.hpp:113

char16_t XMLCh

Definition Xerces_autoconf_config.hpp:120

Configurable memory manager.

Definition MemoryManager.hpp:40

static MemoryManager * fgMemoryManager

The configurable memory manager.

Definition PlatformUtils.hpp:121

Definition XSAnnotation.hpp:42

Definition XSAttributeUse.hpp:40

Definition XSComplexTypeDefinition.hpp:46

XSAnnotationList * getAnnotations()

A set of [annotations].

XSSimpleTypeDefinition * fXSSimpleTypeDefinition

Definition XSComplexTypeDefinition.hpp:254

XSConstants::DERIVATION_TYPE getDerivationMethod() const

[derivation method]: either DERIVATION_EXTENSION, DERIVATION_RESTRICTION, or DERIVATION_NONE (see XSO...

XSComplexTypeDefinition(ComplexTypeInfo *const complexTypeInfo, XSWildcard *const xsWildcard, XSSimpleTypeDefinition *const xsSimpleType, XSAttributeUseList *const xsAttList, XSTypeDefinition *const xsBaseType, XSParticle *const xsParticle, XSAnnotation *const headAnnot, XSModel *const xsModel, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

The default constructor.

bool derivedFromType(const XSTypeDefinition *const ancestorType)

Convenience method: check if this type is derived from the given ancestorType.

XSWildcard * fXSWildcard

Definition XSComplexTypeDefinition.hpp:252

XSParticle * fParticle

Definition XSComplexTypeDefinition.hpp:256

short getProhibitedSubstitutions() const

[prohibited substitutions]: A subset of {extension, restriction} or DERIVATION_NONE represented as a ...

Definition XSComplexTypeDefinition.hpp:276

XSSimpleTypeDefinition * getSimpleType() const

A simple type definition corresponding to simple content model, otherwise null

Definition XSComplexTypeDefinition.hpp:271

CONTENT_TYPE

Definition XSComplexTypeDefinition.hpp:50

XSWildcard * getAttributeWildcard() const

Optional.An attribute wildcard.

Definition XSComplexTypeDefinition.hpp:266

const XMLCh * getNamespace() const

The [target namespace] of this object, or null if it is unspecified.

CONTENT_TYPE getContentType() const

[content type]: one of empty (CONTENTTYPE_EMPTY), a simple type definition (CONTENTTYPE_SIMPLE),...

bool getAbstract() const

[abstract]: a boolean.

ComplexTypeInfo * fComplexTypeInfo

Definition XSComplexTypeDefinition.hpp:251

const XMLCh * getName() const

The name of type NCName of this declaration as defined in XML Namespaces.

short fProhibitedSubstitution

Definition XSComplexTypeDefinition.hpp:257

bool isProhibitedSubstitution(XSConstants::DERIVATION_TYPE toTest)

[prohibited substitutions]: a subset of {extension, restriction}

bool getAnonymous() const

A boolean that specifies if the type definition is anonymous.

XSParticle * getParticle() const

A particle for mixed or element-only content model, otherwise null

Definition XSComplexTypeDefinition.hpp:281

XSAttributeUseList * getAttributeUses()

A set of attribute uses.

Definition XSComplexTypeDefinition.hpp:261

XSNamespaceItem * getNamespaceItem()

A namespace schema information item corresponding to the target namespace of the component,...

~XSComplexTypeDefinition()

XSTypeDefinition * getBaseType()

{base type definition}: either a simple type definition or a complex type definition.

XSAnnotationList * fXSAnnotationList

Definition XSComplexTypeDefinition.hpp:255

XSAttributeUseList * fXSAttributeUseList

Definition XSComplexTypeDefinition.hpp:253

DERIVATION_TYPE

Definition XSConstants.hpp:122

Definition XSModel.hpp:60

Definition XSNamespaceItem.hpp:54

Definition XSParticle.hpp:42

Definition XSSimpleTypeDefinition.hpp:44

This class represents a complexType or simpleType definition.

Definition XSTypeDefinition.hpp:40

XSTypeDefinition * fBaseType

Definition XSTypeDefinition.hpp:198

Definition XSWildcard.hpp:42