public class JavaExternalObjectType extends ExternalObjectType implements ItemType
ItemType.WithSequenceTypeCache
Modifier and Type | Field and Description |
---|---|
static JavaExternalObjectType |
EXTERNAL_OBJECT_TYPE |
Constructor and Description |
---|
JavaExternalObjectType(java.lang.Class javaClass)
Create an external object type.
|
JavaExternalObjectType(java.lang.Class javaClass,
Configuration config)
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
|
AtomicType |
getAtomizedItemType()
Get the item type of the atomic values that will be produced when an item
of this type is atomized
|
double |
getDefaultPriority()
Determine the default priority of this item type when used on its own as a Pattern
|
java.lang.String |
getDescription() |
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 |
getPrimitiveType()
Get the primitive 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
|
UType |
getUType()
Get the corresponding
UType . |
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isAtomicType()
Test whether this item type is an atomic type
|
boolean |
isAtomizable()
Ask whether values of this type are atomizable
|
boolean |
isExternalType()
Return true if this is an external object type, that is, a Saxon-defined type for external
Java or .NET objects
|
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 |
toExportString()
Return a string representation of this SequenceType suitable for use in export (SEF) files.
|
java.lang.String |
toString() |
void |
visitNamedSchemaComponents(SchemaComponentVisitor visitor)
Visit all the schema components used in this ItemType definition
|
generateJavaScriptItemTypeAcceptor, generateJavaScriptItemTypeTest, isPlainType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
generateJavaScriptItemTypeAcceptor, generateJavaScriptItemTypeTest, isPlainType
public static JavaExternalObjectType EXTERNAL_OBJECT_TYPE
public JavaExternalObjectType(java.lang.Class javaClass)
javaClass
- the Java class to which this type correspondspublic JavaExternalObjectType(java.lang.Class javaClass, Configuration config)
javaClass
- the Java class to which this type correspondsconfig
- the Saxon configuration. This argument is no longer used (since 9.5).public UType getUType()
UType
. A UType is a union of primitive item
types.public java.lang.String getName()
getName
in class ExternalObjectType
public java.lang.String getTargetNamespace()
getTargetNamespace
in class ExternalObjectType
public boolean isExternalType()
isExternalType
in class ExternalObjectType
public StructuredQName getTypeName()
getTypeName
in class ExternalObjectType
public ItemType getPrimitiveItemType()
getPrimitiveItemType
in interface ItemType
public int getPrimitiveType()
getPrimitiveType
in interface ItemType
getPrimitiveType
in class ExternalObjectType
public AtomicType getAtomizedItemType()
getAtomizedItemType
in interface ItemType
public boolean isAtomizable()
isAtomizable
in interface ItemType
public int getRelationship(JavaExternalObjectType other)
other
- the other external object typeTypeHierarchy
, for example TypeHierarchy.SUBSUMES
public java.lang.String getDescription()
public boolean isAtomicType()
isAtomicType
in interface ItemType
public java.lang.Class getJavaClass()
public boolean matches(Item item, TypeHierarchy th)
public java.lang.String toString()
public java.lang.String toExportString()
toExportString
in interface ItemType
public java.lang.String getDisplayName()
public double getDefaultPriority()
public void visitNamedSchemaComponents(SchemaComponentVisitor visitor) throws XPathException
visitNamedSchemaComponents
in interface ItemType
visitor
- the visitor class to be called when each component is visitedXPathException
- if an error occurspublic 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-2018 Saxonica Limited. All rights reserved.