*/
public boolean isDerivedFrom(String typeNamespaceArg,
String typeNameArg,
int derivationMethod) throws IllegalStateException {
SchemaType base = schemaType.getBaseType();
int fingerprint = config.getNamePool().allocate("", typeNamespaceArg, typeNameArg);
if (derivationMethod==0 || (derivationMethod & schemaType.getDerivationMethod()) != 0) {
if (base.getFingerprint() == fingerprint) {
return true;
} else if (base instanceof AnyType) {
return false;
} else {
return new TypeInfoImpl(config, base).isDerivedFrom(typeNamespaceArg, typeNameArg, derivationMethod);