
Public Types | |
| enum | VARIETY { VARIETY_ABSENT = 0, VARIETY_ATOMIC = 1, VARIETY_LIST = 2, VARIETY_UNION = 3 } |
| enum | FACET { FACET_NONE = 0, FACET_LENGTH = 1, FACET_MINLENGTH = 2, FACET_MAXLENGTH = 4, FACET_PATTERN = 8, FACET_WHITESPACE = 16, FACET_MAXINCLUSIVE = 32, FACET_MAXEXCLUSIVE = 64, FACET_MINEXCLUSIVE = 128, FACET_MININCLUSIVE = 256, FACET_TOTALDIGITS = 512, FACET_FRACTIONDIGITS = 1024, FACET_ENUMERATION = 2048 } |
| enum | ORDERING { ORDERED_FALSE = 0, ORDERED_PARTIAL = 1, ORDERED_TOTAL = 2 } |
Public Member Functions | |
Constructors | |
| XSSimpleTypeDefinition (DatatypeValidator *const datatypeValidator, VARIETY stVariety, XSTypeDefinition *const xsBaseType, XSSimpleTypeDefinition *const primitiveOrItemType, XSSimpleTypeDefinitionList *const memberTypes, XSAnnotation *headAnnot, XSModel *const xsModel, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) | |
| The default constructor. | |
Destructor | |
| ~XSSimpleTypeDefinition () | |
XSSimpleTypeDefinition methods | |
| VARIETY | getVariety () const |
| [variety]: one of {atomic, list, union} or absent | |
| XSSimpleTypeDefinition * | getPrimitiveType () |
If variety is atomic the primitive type definition (a built-in primitive datatype definition or the simple ur-type definition) is available, otherwise null. | |
| XSSimpleTypeDefinition * | getItemType () |
If variety is list the item type definition (an atomic or union simple type definition) is available, otherwise null. | |
| XSSimpleTypeDefinitionList * | getMemberTypes () const |
If variety is union the list of member type definitions (a non-empty sequence of simple type definitions) is available, otherwise null. | |
| int | getDefinedFacets () const |
| [facets]: get all facets defined on this type. | |
| bool | isDefinedFacet (FACET facetName) |
| Convenience method. | |
| int | getFixedFacets () const |
| [facets]: get all facets defined and fixed on this type. | |
| bool | isFixedFacet (FACET facetName) |
| Convenience method. | |
| const XMLCh * | getLexicalFacetValue (FACET facetName) |
| Convenience method. | |
| StringList * | getLexicalEnumeration () |
| Returns a list of enumeration values. | |
| StringList * | getLexicalPattern () |
| Returns a list of pattern values. | |
| ORDERING | getOrdered () const |
| Fundamental Facet: ordered. | |
| bool | getFinite () const |
| Fundamental Facet: cardinality. | |
| bool | getBounded () const |
| Fundamental Facet: bounded. | |
| bool | getNumeric () const |
| Fundamental Facet: numeric. | |
| XSAnnotationList * | getAnnotations () |
| Optional. | |
| XSFacetList * | getFacets () |
| XSMultiValueFacetList * | getMultiValueFacets () |
| 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. | |
| DatatypeValidator * | getDatatypeValidator () const |
Protected Attributes | |
| int | fDefinedFacets |
| int | fFixedFacets |
| VARIETY | fVariety |
| DatatypeValidator * | fDatatypeValidator |
| XSFacetList * | fXSFacetList |
| XSMultiValueFacetList * | fXSMultiValueFacetList |
| StringList * | fPatternList |
| XSSimpleTypeDefinition * | fPrimitiveOrItemType |
| XSSimpleTypeDefinitionList * | fMemberTypes |
| XSAnnotationList * | fXSAnnotationList |
Friends | |
| class | XSObjectFactory |
| XSSimpleTypeDefinition::XSSimpleTypeDefinition | ( | DatatypeValidator *const | datatypeValidator, | |
| VARIETY | stVariety, | |||
| XSTypeDefinition *const | xsBaseType, | |||
| XSSimpleTypeDefinition *const | primitiveOrItemType, | |||
| XSSimpleTypeDefinitionList *const | memberTypes, | |||
| XSAnnotation * | headAnnot, | |||
| XSModel *const | xsModel, | |||
| MemoryManager *const | manager = XMLPlatformUtils::fgMemoryManager | |||
| ) |
The default constructor.
| datatypeValidator | ||
| stVariety | ||
| xsBaseType | ||
| primitiveOrItemType | ||
| memberTypes | ||
| headAnnot | ||
| xsModel | ||
| manager | The configurable memory manager |
| XSSimpleTypeDefinition::~XSSimpleTypeDefinition | ( | ) |
| XSSimpleTypeDefinition::VARIETY XSSimpleTypeDefinition::getVariety | ( | ) | const |
| XSSimpleTypeDefinition * XSSimpleTypeDefinition::getPrimitiveType | ( | ) |
If variety is atomic the primitive type definition (a built-in primitive datatype definition or the simple ur-type definition) is available, otherwise null.
References fPrimitiveOrItemType, fVariety, and VARIETY_ATOMIC.
| XSSimpleTypeDefinition * XSSimpleTypeDefinition::getItemType | ( | ) |
If variety is list the item type definition (an atomic or union simple type definition) is available, otherwise null.
References fPrimitiveOrItemType, fVariety, and VARIETY_LIST.
| XSSimpleTypeDefinitionList * XSSimpleTypeDefinition::getMemberTypes | ( | ) | const |
If variety is union the list of member type definitions (a non-empty sequence of simple type definitions) is available, otherwise null.
References fMemberTypes.
| int XSSimpleTypeDefinition::getDefinedFacets | ( | ) | const |
[facets]: get all facets defined on this type.
The value is a bit combination of FACET_XXX constants of all defined facets.
References fDefinedFacets.
| bool XSSimpleTypeDefinition::isDefinedFacet | ( | FACET | facetName | ) |
Convenience method.
[Facets]: check whether a facet is defined on this type.
| facetName | The name of the facet. |
| int XSSimpleTypeDefinition::getFixedFacets | ( | ) | const |
| bool XSSimpleTypeDefinition::isFixedFacet | ( | FACET | facetName | ) |
Convenience method.
[Facets]: check whether a facet is defined and fixed on this type.
| facetName | The name of the facet. |
Convenience method.
Returns a value of a single constraining facet for this simple type definition. This method must not be used to retrieve values for enumeration and pattern facets.
| facetName | The name of the facet, i.e. FACET_LENGTH, FACET_TOTALDIGITS (see XSConstants).To retrieve value for pattern or enumeration, see enumeration and pattern. |
facetName for this simple type definition or null. | StringList* XSSimpleTypeDefinition::getLexicalEnumeration | ( | ) |
Returns a list of enumeration values.
| StringList * XSSimpleTypeDefinition::getLexicalPattern | ( | ) |
| ORDERING XSSimpleTypeDefinition::getOrdered | ( | ) | const |
Fundamental Facet: ordered.
| bool XSSimpleTypeDefinition::getFinite | ( | ) | const |
Fundamental Facet: cardinality.
| bool XSSimpleTypeDefinition::getBounded | ( | ) | const |
Fundamental Facet: bounded.
| bool XSSimpleTypeDefinition::getNumeric | ( | ) | const |
Fundamental Facet: numeric.
| XSAnnotationList * XSSimpleTypeDefinition::getAnnotations | ( | ) |
| XSFacetList * XSSimpleTypeDefinition::getFacets | ( | ) |
enumeration and pattern facets. References fXSFacetList.
| XSMultiValueFacetList * XSSimpleTypeDefinition::getMultiValueFacets | ( | ) |
| const XMLCh* XSSimpleTypeDefinition::getName | ( | ) | const [virtual] |
The name of type NCName of this declaration as defined in XML Namespaces.
Implements XSTypeDefinition.
| const XMLCh* XSSimpleTypeDefinition::getNamespace | ( | ) | [virtual] |
| XSNamespaceItem* XSSimpleTypeDefinition::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 XSSimpleTypeDefinition::getAnonymous | ( | ) | const [virtual] |
A boolean that specifies if the type definition is anonymous.
Convenience attribute.
Implements XSTypeDefinition.
| XSTypeDefinition* XSSimpleTypeDefinition::getBaseType | ( | ) | [virtual] |
{base type definition}: either a simple type definition or a complex type definition.
Implements XSTypeDefinition.
| bool XSSimpleTypeDefinition::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.
| DatatypeValidator * XSSimpleTypeDefinition::getDatatypeValidator | ( | ) | const |
References fDatatypeValidator.
friend class XSObjectFactory [friend] |
int XSSimpleTypeDefinition::fDefinedFacets [protected] |
Referenced by getDefinedFacets().
int XSSimpleTypeDefinition::fFixedFacets [protected] |
Referenced by getFixedFacets().
VARIETY XSSimpleTypeDefinition::fVariety [protected] |
Referenced by getItemType(), getPrimitiveType(), and getVariety().
DatatypeValidator* XSSimpleTypeDefinition::fDatatypeValidator [protected] |
Referenced by getDatatypeValidator().
XSFacetList* XSSimpleTypeDefinition::fXSFacetList [protected] |
Referenced by getFacets().
Referenced by getMultiValueFacets().
StringList* XSSimpleTypeDefinition::fPatternList [protected] |
Referenced by getLexicalPattern().
Referenced by getItemType(), and getPrimitiveType().
Referenced by getMemberTypes().
Referenced by getAnnotations().
1.5.6