net.sf.saxon.dom

Class TypeInfoImpl

public class TypeInfoImpl extends Object implements TypeInfo

This class implements the DOM TypeInfo interface as a wrapper over the Saxon SchemaType interface.
Constructor Summary
TypeInfoImpl(Configuration config, SchemaType type)
Construct a TypeInfo based on a SchemaType
Method Summary
StringgetTypeName()
Get the local name of the type (a system-allocated name if anonymous).
StringgetTypeNamespace()
Get the namespace name of the type (a system-allocated name if anonymous).
booleanisDerivedFrom(String typeNamespaceArg, String typeNameArg, int derivationMethod)
This method returns true if there is a derivation between the reference type definition, that is the TypeInfo on which the method is being called, and the other type definition, that is the one passed as parameters.

Constructor Detail

TypeInfoImpl

public TypeInfoImpl(Configuration config, SchemaType type)
Construct a TypeInfo based on a SchemaType

Method Detail

getTypeName

public String getTypeName()
Get the local name of the type (a system-allocated name if anonymous). Needed to implement the DOM level 3 TypeInfo interface.

getTypeNamespace

public String getTypeNamespace()
Get the namespace name of the type (a system-allocated name if anonymous). Needed to implement the DOM level 3 TypeInfo interface.

isDerivedFrom

public boolean isDerivedFrom(String typeNamespaceArg, String typeNameArg, int derivationMethod)
This method returns true if there is a derivation between the reference type definition, that is the TypeInfo on which the method is being called, and the other type definition, that is the one passed as parameters. This method implements the DOM Level 3 TypeInfo interface. It must be called only on a valid type.

Parameters: typeNamespaceArg the namespace of the "other" type typeNameArg the local name of the "other" type derivationMethod the derivation method: zero or more of DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_LIST, or DERIVATION_UNION. Zero means derived by any possible route.