public class JavaExternalObjectType extends ExternalObjectType implements ItemType
Modifier and Type | Field and Description |
---|---|
static JavaExternalObjectType |
EXTERNAL_OBJECT_TYPE |
Constructor and Description |
---|
JavaExternalObjectType(Class javaClass)
Create an external object type.
|
JavaExternalObjectType(Class javaClass,
Configuration config)
Create an external object type.
|
Modifier and Type | Method and Description |
---|---|
static String |
classNameToLocalName(String className)
Static method to convert a Java class name to an XPath local name.
|
static StructuredQName |
classNameToQName(String className)
Static method to get the QName corresponding to a Java class name
|
boolean |
equals(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
|
String |
getDescription() |
String |
getDisplayName() |
Class |
getJavaClass()
Get the Java class to which this external object type corresponds
|
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
|
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 String |
localNameToClassName(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
|
String |
toString() |
void |
visitNamedSchemaComponents(SchemaComponentVisitor visitor)
Visit all the schema components used in this ItemType definition
|
isPlainType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isPlainType
public static JavaExternalObjectType EXTERNAL_OBJECT_TYPE
public JavaExternalObjectType(Class javaClass)
javaClass
- the Java class to which this type correspondspublic JavaExternalObjectType(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 String getName()
getName
in class ExternalObjectType
public 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 String getDescription()
public boolean isAtomicType()
isAtomicType
in interface ItemType
public Class getJavaClass()
public boolean matches(Item item, TypeHierarchy th)
public 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()
public boolean equals(Object obj)
public static String classNameToLocalName(String className)
public static String localNameToClassName(String className)
public static StructuredQName classNameToQName(String className)
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.