|
XSTypeDefinition Class ReferenceThis class represents a complexType or simpleType definition.
More...
Inheritance diagram for XSTypeDefinition:
[legend]List of all members.
Detailed Description
This class represents a complexType or simpleType definition.
This is *always* owned by the validator /parser object from which it is obtained.
Member Enumeration Documentation
|
- Enumeration values:
-
COMPLEX_TYPE |
This constant value signifies a complex type. |
SIMPLE_TYPE |
This constant value signifies a simple type.
|
|
Constructor & Destructor Documentation
|
The default constructor.
- Parameters:
-
| typeCategory | |
| xsBaseType | |
| xsModel | |
| manager | The configurable memory manager |
|
Member Function Documentation
bool XSTypeDefinition::derivedFrom |
( |
const XMLCh * |
typeNamespace, |
|
|
const XMLCh * |
name |
|
) |
|
|
|
Convenience method: check if this type is derived from the given ancestor type.
- Parameters:
-
| typeNamespace | An ancestor type namespace. |
| name | An ancestor type name. |
- Returns:
- Return true if this type is derived from the ancestor defined by
typeNamespace and name .
|
virtual bool XSTypeDefinition::derivedFromType |
( |
const XSTypeDefinition *const |
ancestorType |
) |
[pure virtual] |
|
|
Convenience method: check if this type is derived from the given ancestorType .
- Parameters:
-
| ancestorType | An ancestor type definition. |
- Returns:
- Return true if this type is derived from
ancestorType .
Implemented in XSComplexTypeDefinition, and XSSimpleTypeDefinition. |
virtual bool XSTypeDefinition::getAnonymous |
( |
|
) |
const [pure virtual] |
|
short XSTypeDefinition::getFinal |
( |
|
) |
const |
|
|
For complex types the returned value is a bit combination of the subset of {DERIVATION_EXTENSION, DERIVATION_RESTRICTION } corresponding to final set of this type or DERIVATION_NONE .
For simple types the returned value is a bit combination of the subset of { DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST } corresponding to final set of this type or DERIVATION_NONE . |
virtual const XMLCh* XSTypeDefinition::getName |
( |
|
) |
[pure virtual] |
|
virtual const XMLCh* XSTypeDefinition::getNamespace |
( |
|
) |
[pure virtual] |
|
virtual XSNamespaceItem* XSTypeDefinition::getNamespaceItem |
( |
|
) |
[pure virtual] |
|
|
Return whether this type definition is a simple type or complex type.
|
bool XSTypeDefinition::isFinal |
( |
short |
toTest |
) |
|
|
|
{final}.
For complex type definition it is a subset of {extension, restriction}. For simple type definition it is a subset of {extension, list, restriction, union}. - Parameters:
-
| toTest | Extension, restriction, list, union constants (defined in XSObject ). |
- Returns:
- True if toTest is in the final set, otherwise false.
|
Member Data Documentation
The documentation for this class was generated from the following file:
|