XSTypeDefinitionpublic interface XSTypeDefinition implements XSObject, TypeInfoThis interface represents a complex or simple type definition.
The interface may be updated or replaced. |
Fields Summary |
---|
public static final short | COMPLEX_TYPEThis constant value signifies a complex type. | public static final short | SIMPLE_TYPEThis constant value signifies a simple type. |
Methods Summary |
---|
public boolean | derivedFrom(java.lang.String namespace, java.lang.String name, short derivationMethod)Convenience method: check if this type is derived from the given
ancestor type.
| public boolean | derivedFromType(com.sun.org.apache.xerces.internal.xs.XSTypeDefinition ancestorType, short derivationMethod)Convenience method: check if this type is derived from the given
ancestorType .
| public boolean | getAnonymous()Convenience. A boolean that specifies if the type definition is
anonymous. Convenience attribute.
| public com.sun.org.apache.xerces.internal.xs.XSTypeDefinition | getBaseType(){base type definition}: either a simple type definition or a complex
type definition.
| public short | getFinal()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 .
| public short | getTypeCategory()Return whether this type definition is a simple type or complex type.
| public boolean | isFinal(short restriction){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}.
|
|