public interface XSTypeDefinition extends XSObject
| Modifier and Type | Field and Description | 
|---|---|
| static short | COMPLEX_TYPEThe object describes a complex type. | 
| static short | SIMPLE_TYPEThe object describes a simple type. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | derivedFrom(java.lang.String namespace,
           java.lang.String name,
           short derivationMethod)Convenience method which checks if this type is derived from the given 
 ancestor type. | 
| boolean | derivedFromType(XSTypeDefinition ancestorType,
               short derivationMethod)Convenience method which checks if this type is derived from the given 
  ancestorType. | 
| boolean | getAnonymous()Convenience attribute. | 
| XSTypeDefinition | getBaseType(){base type definition}: either a simple type definition or a complex 
 type definition. | 
| XSObject | getContext()A property that simplifies testing for the identity of anonymous type
 definitions. | 
| short | getFinal()For complex types the returned value is a bit combination of the subset 
 of { DERIVATION_EXTENSION, DERIVATION_RESTRICTION} 
 corresponding tofinalset of this type orDERIVATION_NONE. | 
| short | getTypeCategory()Return whether this type definition is a simple type or complex type. | 
| boolean | isFinal(short restriction){final}. | 
getName, getNamespace, getNamespaceItem, getTypestatic final short COMPLEX_TYPE
static final short SIMPLE_TYPE
short getTypeCategory()
XSTypeDefinition getBaseType()
boolean isFinal(short restriction)
restriction - Extension, restriction, list, union constants 
   (defined in XSConstants).restriction is in the final set, 
   otherwise false.short getFinal()
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.boolean getAnonymous()
boolean derivedFromType(XSTypeDefinition ancestorType, short derivationMethod)
ancestorType.ancestorType - An ancestor type definition.derivationMethod - A bit combination representing a subset of {
   DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
   }.ancestorType 
   using only derivation methods from the derivationMethod
   .boolean derivedFrom(java.lang.String namespace,
                  java.lang.String name,
                  short derivationMethod)
namespace - An ancestor type namespace.name - An ancestor type name.derivationMethod - A bit combination representing a subset of {
   DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
   }.ancestorType 
   using only derivation methods from the derivationMethod
   .XSObject getContext()
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.