Package net.sf.saxon.dom
Class TypeInfoImpl
java.lang.Object
net.sf.saxon.dom.TypeInfoImpl
- All Implemented Interfaces:
TypeInfo
This class implements the DOM TypeInfo interface as a wrapper over the Saxon SchemaType
interface.
-
Field Summary
Fields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
-
Constructor Summary
ConstructorsConstructorDescriptionTypeInfoImpl
(Configuration config, SchemaType type) Construct a TypeInfo based on a SchemaType -
Method Summary
Modifier and TypeMethodDescriptionGet the local name of the type (a system-allocated name if anonymous).Get the namespace name of the type (a system-allocated name if anonymous).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.
-
Constructor Details
-
TypeInfoImpl
Construct a TypeInfo based on a SchemaType- Parameters:
config
- the Saxon Configurationtype
- the schema type to be wrapped by thisTypeInfo
-
-
Method Details
-
getTypeName
Get the local name of the type (a system-allocated name if anonymous). Needed to implement the DOM level 3 TypeInfo interface.- Specified by:
getTypeName
in interfaceTypeInfo
-
getTypeNamespace
Get the namespace name of the type (a system-allocated name if anonymous). Needed to implement the DOM level 3 TypeInfo interface.- Specified by:
getTypeNamespace
in interfaceTypeInfo
-
isDerivedFrom
public boolean isDerivedFrom(String typeNamespaceArg, String typeNameArg, int derivationMethod) throws IllegalStateException 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.- Specified by:
isDerivedFrom
in interfaceTypeInfo
- Parameters:
typeNamespaceArg
- the namespace of the "other" typetypeNameArg
- the local name of the "other" typederivationMethod
- the derivation method: zero or more ofDerivation.DERIVATION_RESTRICTION
,Derivation.DERIVATION_EXTENSION
,Derivation.DERIVATION_LIST
, orDerivation.DERIVATION_UNION
. Zero means derived by any possible route.- Throws:
IllegalStateException
-