|  | 
 XSSimpleTypeDefinition Class ReferenceThis class represents a simpleType definition schema component.  
More...
Inheritance diagram for XSSimpleTypeDefinition:  [legend]List of all members. 
|  |  | 
 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 |  |  |  |  | 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. 
 |  |  |  |  | ~XSSimpleTypeDefinition () |  |  |  | VARIETY | getVariety () const |  |  | [variety]: one of {atomic, list, union} or absent 
 |  | XSSimpleTypeDefinition * | getPrimitiveType () |  |  | If variety is atomicthe primitive type definition (a built-in primitive datatype definition or the simple ur-type definition) is available, otherwisenull.
 |  | XSSimpleTypeDefinition * | getItemType () |  |  | If variety is listthe item type definition (an atomic or union simple type definition) is available, otherwisenull.
 |  | XSSimpleTypeDefinitionList * | getMemberTypes () const |  |  | If variety is unionthe list of member type definitions (a non-empty sequence of simple type definitions) is available, otherwisenull.
 |  | 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 () |  |  | The name of type NCNameof this declaration as defined in XML Namespaces.
 |  | const XMLCh * | getNamespace () |  |  | The [target namespace] of this object, or nullif 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 |  
 Detailed DescriptionThis class represents a simpleType definition schema component.
This is *always* owned by the validator /parser object from which it is obtained. 
 
 
 Member Enumeration Documentation
 
  
    |  | 
 Enumeration values: 
| FACET_NONE | No facets defined. 
 |  | FACET_LENGTH | 4.3.1 Length |  | FACET_MINLENGTH | 4.3.2 minLength. 
 |  | FACET_MAXLENGTH | 4.3.3 maxLength. 
 |  | FACET_PATTERN | 4.3.4 pattern. 
 |  | FACET_WHITESPACE | 4.3.5 whitespace. 
 |  | FACET_MAXINCLUSIVE | 4.3.7 maxInclusive. 
 |  | FACET_MAXEXCLUSIVE | 4.3.9 maxExclusive. 
 |  | FACET_MINEXCLUSIVE | 4.3.9 minExclusive. 
 |  | FACET_MININCLUSIVE | 4.3.10 minInclusive. 
 |  | FACET_TOTALDIGITS | 4.3.11 totalDigits . 
 |  | FACET_FRACTIONDIGITS | 4.3.12 fractionDigits. 
 |  | FACET_ENUMERATION | 4.3.5 enumeration. 
 | 
 |  
 
  
    |  | 
 Enumeration values: 
| ORDERED_FALSE | A constant defined for the 'ordered' fundamental facet: Not ordered. 
 |  | ORDERED_PARTIAL | A constant defined for the 'ordered' fundamental facet: partially ordered. 
 |  | ORDERED_TOTAL | A constant defined for the 'ordered' fundamental facet: total ordered. 
 | 
 |  
 
  
    |  | 
 Enumeration values: 
| VARIETY_ABSENT | The variety is absent for the anySimpleType definition. 
 |  | VARIETY_ATOMIC | Atomictype.
 |  | VARIETY_LIST | Listtype.
 |  | VARIETY_UNION | Uniontype.
 | 
 |  
 Constructor & Destructor Documentation
 
  
    |  | 
The default constructor. 
 
 Parameters:
  
    |  | datatypeValidator |  |  |  | stVariety |  |  |  | xsBaseType |  |  |  | primitiveOrItemType |  |  |  | memberTypes |  |  |  | headAnnot |  |  |  | xsModel |  |  |  | manager | The configurable memory manager | 
 |  
 
 Member Function Documentation
 
  
    | 
        
          | bool XSSimpleTypeDefinition::derivedFromType | ( | const XSTypeDefinition *const | ancestorType | ) |  [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.
 
Implements XSTypeDefinition.     |  
 
  
    |  | 
Optional. 
 
A set of [annotation]s.      |  
 
  
    | 
        
          | bool XSSimpleTypeDefinition::getAnonymous | ( |  | ) | const  [virtual] |  |  
  
    |  | 
A boolean that specifies if the type definition is anonymous. 
 
Convenience attribute. 
 
Implements XSTypeDefinition.     |  
 
  
    |  | 
{base type definition}: either a simple type definition or a complex type definition. 
 
 
Implements XSTypeDefinition.     |  
 
  
    | 
        
          | bool XSSimpleTypeDefinition::getBounded | ( |  | ) | const |  |  
  
    |  | 
Fundamental Facet: bounded. 
 
     |  
 
  
    | 
        
          | DatatypeValidator * XSSimpleTypeDefinition::getDatatypeValidator | ( |  | ) | const |  |  
 
  
    | 
        
          | 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.      |  
 
  
    |  | 
 Returns:list of constraining facets. This method must not be used to retrieve values for enumerationandpatternfacets.
 |  
 
  
    | 
        
          | bool XSSimpleTypeDefinition::getFinite | ( |  | ) | const |  |  
  
    |  | 
Fundamental Facet: cardinality. 
 
     |  
 
  
    | 
        
          | int XSSimpleTypeDefinition::getFixedFacets | ( |  | ) | const |  |  
  
    |  | 
[facets]: get all facets defined and fixed on this type. 
 
     |  
 
  
    |  | 
If variety is listthe item type definition (an atomic or union simple type definition) is available, otherwisenull. 
     |  
 
  
    | 
        
          | StringList* XSSimpleTypeDefinition::getLexicalEnumeration | ( |  | ) |  |  |  
  
    |  | 
Returns a list of enumeration values. 
 
     |  
 
  
    | 
        
          | const XMLCh* XSSimpleTypeDefinition::getLexicalFacetValue | ( | FACET | facetName | ) |  |  |  
  
    |  | 
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 enumerationandpatternfacets. Parameters:
  
    |  | facetName | The name of the facet, i.e. FACET_LENGTH, FACET_TOTALDIGITS (seeXSConstants).To retrieve value for pattern or enumeration, seeenumerationandpattern. | 
 Returns:A value of the facet specified in facetNamefor this simple type definition ornull.
 |  
 
  
    | 
        
          | StringList * XSSimpleTypeDefinition::getLexicalPattern | ( |  | ) |  |  |  
  
    |  | 
Returns a list of pattern values. 
 
     |  
 
  
    |  | 
If variety is unionthe list of member type definitions (a non-empty sequence of simple type definitions) is available, otherwisenull. 
     |  
 
  
    |  | 
 Returns:list of enumeration and pattern facets. 
 |  
 
  
    | 
        
          | const XMLCh* XSSimpleTypeDefinition::getName | ( |  | ) |  [virtual] |  |  
  
    |  | 
The name of type NCNameof this declaration as defined in XML Namespaces. 
 
Implements XSTypeDefinition.     |  
 
  
    | 
        
          | const XMLCh* XSSimpleTypeDefinition::getNamespace | ( |  | ) |  [virtual] |  |  
  
    |  | 
The [target namespace] of this object, or nullif it is unspecified. 
 
Implements XSTypeDefinition.     |  
 
  
    |  | 
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::getNumeric | ( |  | ) | const |  |  
  
    |  | 
Fundamental Facet: numeric. 
 
     |  
 
  
    | 
        
          | ORDERING XSSimpleTypeDefinition::getOrdered | ( |  | ) | const |  |  
  
    |  | 
Fundamental Facet: ordered. 
 
     |  
 
  
    |  | 
If variety is atomicthe primitive type definition (a built-in primitive datatype definition or the simple ur-type definition) is available, otherwisenull. 
     |  
 
  
    |  | 
[variety]: one of {atomic, list, union} or absent 
 
     |  
 
  
    | 
        
          | bool XSSimpleTypeDefinition::isDefinedFacet | ( | FACET | facetName | ) |  |  |  
  
    |  | 
Convenience method. 
 
[Facets]: check whether a facet is defined on this type.  Parameters:
  
    |  | facetName | The name of the facet. | 
 Returns:True if the facet is defined, false otherwise. 
 |  
 
  
    | 
        
          | bool XSSimpleTypeDefinition::isFixedFacet | ( | FACET | facetName | ) |  |  |  
  
    |  | 
Convenience method. 
 
[Facets]: check whether a facet is defined and fixed on this type.  Parameters:
  
    |  | facetName | The name of the facet. | 
 Returns:True if the facet is fixed, false otherwise. 
 |  
 Friends And Related Function Documentation
 
  
    | 
        
          | friend class XSObjectFactory  [friend] |  |  
 Member Data Documentation
 
 
 
 
 
 
 
 
 
 The documentation for this class was generated from the following file:
 |