FileDocCategorySizeDatePackage
XSTypeDefinition.javaAPI DocJava SE 5 API6245Fri Aug 26 14:55:52 BST 2005com.sun.org.apache.xerces.internal.impl.xs.psvi

XSTypeDefinition

public interface XSTypeDefinition implements XSObject
This interface represents a complex or simple type definition. The interface may be updated or replaced.

Fields Summary
public static final short
COMPLEX_TYPE
This constant value signifies a complex type.
public static final short
SIMPLE_TYPE
This constant value signifies a simple type.
Constructors Summary
Methods Summary
public booleanderivedFrom(java.lang.String namespace, java.lang.String name, short derivationMethod)
Convenience method: check if this type is derived from the given ancestor type.

param
namespace An ancestor type namespace.
param
name An ancestor type name.
param
derivationMethod A bit combination representing a subset of { DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST }.
return
Return true if this type is derived from ancestorType using only derivation methods from the derivationMethod. Return true if this type is derived from ancestorType.

public booleanderivedFromType(com.sun.org.apache.xerces.internal.impl.xs.psvi.XSTypeDefinition ancestorType, short derivationMethod)
Convenience method: check if this type is derived from the given ancestorType.

param
ancestorType An ancestor type definition.
param
derivationMethod A bit combination representing a subset of { DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST }.
return
Return true if this type is derived from ancestorType using only derivation methods from the derivationMethod. Return true if this type is derived from ancestorType.

public booleangetAnonymous()
Convenience. A boolean that specifies if the type definition is anonymous. Convenience attribute.

public com.sun.org.apache.xerces.internal.impl.xs.psvi.XSTypeDefinitiongetBaseType()
{base type definition}: either a simple type definition or a complex type definition.

public shortgetFinal()
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 shortgetTypeCategory()
Return whether this type definition is a simple type or complex type.

public booleanisFinal(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}.

param
restriction Extension, restriction, list, union constants (defined in XSConstants).
return
True if restriction is in the final set, otherwise false.