Public Types | |
enum | CONTENT_TYPE { CONTENTTYPE_EMPTY = 0, CONTENTTYPE_SIMPLE = 1, CONTENTTYPE_ELEMENT = 2, CONTENTTYPE_MIXED = 3 } |
Public Member Functions | |
Constructors | |
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. | |
Destructor | |
~XSComplexTypeDefinition () | |
XSComplexTypeDefinition methods | |
XSConstants::DERIVATION_TYPE | getDerivationMethod () const |
[derivation method]: either DERIVATION_EXTENSION , DERIVATION_RESTRICTION , or DERIVATION_NONE (see XSObject ). | |
bool | getAbstract () const |
[abstract]: a boolean. | |
XSAttributeUseList * | getAttributeUses () |
A set of attribute uses. | |
XSWildcard * | getAttributeWildcard () const |
Optional.An attribute wildcard. | |
CONTENT_TYPE | getContentType () const |
[content type]: one of empty (CONTENTTYPE_EMPTY ), a simple type definition (CONTENTTYPE_SIMPLE ), mixed ( CONTENTTYPE_MIXED ), or element-only ( CONTENTTYPE_ELEMENT ). | |
XSSimpleTypeDefinition * | getSimpleType () const |
A simple type definition corresponding to simple content model, otherwise null . | |
XSParticle * | getParticle () const |
A particle for mixed or element-only content model, otherwise null . | |
bool | isProhibitedSubstitution (XSConstants::DERIVATION_TYPE toTest) |
[prohibited substitutions]: a subset of {extension, restriction} | |
short | getProhibitedSubstitutions () const |
[prohibited substitutions]: A subset of {extension, restriction} or DERIVATION_NONE represented as a bit flag (see XSObject ). | |
XSAnnotationList * | getAnnotations () |
A set of [annotations]. | |
const XMLCh * | getName () const |
The name of type NCName of this declaration as defined in XML Namespaces. | |
const XMLCh * | getNamespace () |
The [target namespace] of this object, or null if it is unspecified. | |
XSNamespaceItem * | getNamespaceItem () |
A namespace schema information item corresponding to the target namespace of the component, if it's globally declared; or null otherwise. | |
bool | getAnonymous () const |
A boolean that specifies if the type definition is anonymous. | |
XSTypeDefinition * | getBaseType () |
{base type definition}: either a simple type definition or a complex type definition. | |
bool | derivedFromType (const XSTypeDefinition *const ancestorType) |
Convenience method: check if this type is derived from the given ancestorType . | |
Protected Attributes | |
ComplexTypeInfo * | fComplexTypeInfo |
XSWildcard * | fXSWildcard |
XSAttributeUseList * | fXSAttributeUseList |
XSSimpleTypeDefinition * | fXSSimpleTypeDefinition |
XSAnnotationList * | fXSAnnotationList |
XSParticle * | fParticle |
short | fProhibitedSubstitution |
Friends | |
class | XSObjectFactory |
XSComplexTypeDefinition::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.
complexTypeInfo | ||
xsWildcard | ||
xsSimpleType | ||
xsAttList | ||
xsBaseType | ||
xsParticle | ||
headAnnot | ||
xsModel | ||
manager | The configurable memory manager |
XSComplexTypeDefinition::~XSComplexTypeDefinition | ( | ) |
XSConstants::DERIVATION_TYPE XSComplexTypeDefinition::getDerivationMethod | ( | ) | const |
[derivation method]: either DERIVATION_EXTENSION
, DERIVATION_RESTRICTION
, or DERIVATION_NONE
(see XSObject
).
bool XSComplexTypeDefinition::getAbstract | ( | ) | const |
[abstract]: a boolean.
Complex types for which abstract
is true must not be used as the type definition for the validation of element information items.
XSAttributeUseList * XSComplexTypeDefinition::getAttributeUses | ( | ) |
XSWildcard * XSComplexTypeDefinition::getAttributeWildcard | ( | ) | const |
CONTENT_TYPE XSComplexTypeDefinition::getContentType | ( | ) | const |
[content type]: one of empty (CONTENTTYPE_EMPTY
), a simple type definition (CONTENTTYPE_SIMPLE
), mixed ( CONTENTTYPE_MIXED
), or element-only ( CONTENTTYPE_ELEMENT
).
XSSimpleTypeDefinition * XSComplexTypeDefinition::getSimpleType | ( | ) | const |
A simple type definition corresponding to simple content model, otherwise null
.
References fXSSimpleTypeDefinition.
XSParticle * XSComplexTypeDefinition::getParticle | ( | ) | const |
bool XSComplexTypeDefinition::isProhibitedSubstitution | ( | XSConstants::DERIVATION_TYPE | toTest | ) |
[prohibited substitutions]: a subset of {extension, restriction}
toTest | Extension or restriction constants (see XSObject ). |
short XSComplexTypeDefinition::getProhibitedSubstitutions | ( | ) | const |
[prohibited substitutions]: A subset of {extension, restriction} or DERIVATION_NONE
represented as a bit flag (see XSObject
).
References fProhibitedSubstitution.
XSAnnotationList* XSComplexTypeDefinition::getAnnotations | ( | ) |
A set of [annotations].
const XMLCh* XSComplexTypeDefinition::getName | ( | ) | const [virtual] |
The name of type NCName
of this declaration as defined in XML Namespaces.
Implements XSTypeDefinition.
const XMLCh* XSComplexTypeDefinition::getNamespace | ( | ) | [virtual] |
XSNamespaceItem* XSComplexTypeDefinition::getNamespaceItem | ( | ) | [virtual] |
A namespace schema information item corresponding to the target namespace of the component, if it's globally declared; or null otherwise.
Implements XSTypeDefinition.
bool XSComplexTypeDefinition::getAnonymous | ( | ) | const [virtual] |
A boolean that specifies if the type definition is anonymous.
Convenience attribute.
Implements XSTypeDefinition.
XSTypeDefinition* XSComplexTypeDefinition::getBaseType | ( | ) | [virtual] |
{base type definition}: either a simple type definition or a complex type definition.
Implements XSTypeDefinition.
bool XSComplexTypeDefinition::derivedFromType | ( | const XSTypeDefinition *const | ancestorType | ) | [virtual] |
Convenience method: check if this type is derived from the given ancestorType
.
ancestorType | An ancestor type definition. |
ancestorType
. Implements XSTypeDefinition.
friend class XSObjectFactory [friend] |
ComplexTypeInfo* XSComplexTypeDefinition::fComplexTypeInfo [protected] |
XSWildcard* XSComplexTypeDefinition::fXSWildcard [protected] |
Referenced by getAttributeWildcard().
Referenced by getAttributeUses().
Referenced by getSimpleType().
XSParticle* XSComplexTypeDefinition::fParticle [protected] |
Referenced by getParticle().
short XSComplexTypeDefinition::fProhibitedSubstitution [protected] |
Referenced by getProhibitedSubstitutions().