public class JavaExternalObjectType extends ExternalObjectType
ItemType.WithSequenceTypeCache| Modifier and Type | Field and Description | 
|---|---|
protected Configuration | 
config  | 
protected java.lang.Class<?> | 
javaClass  | 
THE_INSTANCE| Constructor and Description | 
|---|
JavaExternalObjectType(Configuration config,
                      java.lang.Class<?> javaClass)
Create an external object type. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static java.lang.String | 
classNameToLocalName(java.lang.String className)
Static method to convert a Java class name to an XPath local name. 
 | 
static StructuredQName | 
classNameToQName(java.lang.String className)
Static method to get the QName corresponding to a Java class name 
 | 
boolean | 
equals(java.lang.Object obj)
Test whether two ExternalObjectType objects represent the same type 
 | 
Configuration | 
getConfiguration()  | 
java.lang.String | 
getDisplayName()  | 
java.lang.Class<?> | 
getJavaClass()
Get the Java class to which this external object type corresponds 
 | 
java.lang.String | 
getName()
Get the local name of this type. 
 | 
ItemType | 
getPrimitiveItemType()
Get the primitive item type corresponding to this item type. 
 | 
int | 
getRelationship(JavaExternalObjectType other)
Get the relationship of this external object type to another external object type 
 | 
java.lang.String | 
getTargetNamespace()
Get the target namespace of this type. 
 | 
StructuredQName | 
getTypeName()
Get the name of this type as a StructuredQName, unless the type is anonymous, in which case
 return null 
 | 
int | 
hashCode()
Returns a hash code value for the object. 
 | 
static java.lang.String | 
localNameToClassName(java.lang.String className)
Static method to convert an XPath local name to a Java class name. 
 | 
boolean | 
matches(Item item,
       TypeHierarchy th)
Test whether a given item conforms to this type 
 | 
java.lang.String | 
toString()  | 
generateJavaScriptItemTypeAcceptor, generateJavaScriptItemTypeTest, isExternalType, isPlainTypegetAlphaCode, getAtomizedItemType, getGenre, getPrimitiveType, getUType, isAtomicType, isAtomizableclone, finalize, getClass, notify, notifyAll, wait, wait, waitexplainMismatch, isTrueItemType, toExportStringprotected Configuration config
protected java.lang.Class<?> javaClass
public JavaExternalObjectType(Configuration config, java.lang.Class<?> javaClass)
javaClass - the Java class to which this type correspondspublic Configuration getConfiguration()
public java.lang.String getName()
getName in class ExternalObjectTypepublic java.lang.String getTargetNamespace()
getTargetNamespace in class ExternalObjectTypepublic StructuredQName getTypeName()
getTypeName in class ExternalObjectTypepublic ItemType getPrimitiveItemType()
getPrimitiveItemType in interface ItemTypegetPrimitiveItemType in class AnyExternalObjectTypepublic int getRelationship(JavaExternalObjectType other)
other - the other external object typeTypeHierarchy, for example TypeHierarchy.SUBSUMESpublic java.lang.Class<?> getJavaClass()
public boolean matches(Item item, TypeHierarchy th)
matches in interface ItemTypematches in class AnyExternalObjectTypeitem - The item to be testedth - The type hierarchy cachepublic java.lang.String toString()
public java.lang.String getDisplayName()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the other ExternalObjectTypepublic static java.lang.String classNameToLocalName(java.lang.String className)
public static java.lang.String localNameToClassName(java.lang.String className)
public static StructuredQName classNameToQName(java.lang.String className)
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.