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, isPlainType
getAlphaCode, getAtomizedItemType, getGenre, getPrimitiveType, getUType, isAtomicType, isAtomizable
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
explainMismatch, isTrueItemType, toExportString
protected 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 ExternalObjectType
public java.lang.String getTargetNamespace()
getTargetNamespace
in class ExternalObjectType
public StructuredQName getTypeName()
getTypeName
in class ExternalObjectType
public ItemType getPrimitiveItemType()
getPrimitiveItemType
in interface ItemType
getPrimitiveItemType
in class AnyExternalObjectType
public int getRelationship(JavaExternalObjectType other)
other
- the other external object typeTypeHierarchy
, for example TypeHierarchy.SUBSUMES
public java.lang.Class<?> getJavaClass()
public boolean matches(Item item, TypeHierarchy th)
matches
in interface ItemType
matches
in class AnyExternalObjectType
item
- 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.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- 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.