public class TypeInfoImpl
extends java.lang.Object
implements org.w3c.dom.TypeInfo
Constructor and Description |
---|
TypeInfoImpl(Configuration config,
SchemaType type)
Construct a TypeInfo based on a SchemaType
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTypeName()
Get the local name of the type (a system-allocated name if anonymous).
|
java.lang.String |
getTypeNamespace()
Get the namespace name of the type (a system-allocated name if anonymous).
|
boolean |
isDerivedFrom(java.lang.String typeNamespaceArg,
java.lang.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.
|
public TypeInfoImpl(Configuration config, SchemaType type)
public java.lang.String getTypeName()
getTypeName
in interface org.w3c.dom.TypeInfo
public java.lang.String getTypeNamespace()
getTypeNamespace
in interface org.w3c.dom.TypeInfo
public boolean isDerivedFrom(java.lang.String typeNamespaceArg, java.lang.String typeNameArg, int derivationMethod) throws java.lang.IllegalStateException
isDerivedFrom
in interface org.w3c.dom.TypeInfo
typeNamespaceArg
- the namespace of the "other" typetypeNameArg
- the local name of the "other" typederivationMethod
- the derivation method: zero or more of SchemaType.DERIVATION_RESTRICTION
,
SchemaType.DERIVATION_EXTENSION
, SchemaType.DERIVATION_LIST
, or SchemaType.DERIVATION_UNION
.
Zero means derived by any possible route.java.lang.IllegalStateException
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.