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
|
isPlainTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitisPlainTypepublic 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 ExternalObjectTypepublic String getTargetNamespace()
getTargetNamespace in class ExternalObjectTypepublic boolean isExternalType()
isExternalType in class ExternalObjectTypepublic StructuredQName getTypeName()
getTypeName in class ExternalObjectTypepublic ItemType getPrimitiveItemType()
getPrimitiveItemType in interface ItemTypepublic int getPrimitiveType()
getPrimitiveType in interface ItemTypegetPrimitiveType in class ExternalObjectTypepublic AtomicType getAtomizedItemType()
getAtomizedItemType in interface ItemTypepublic boolean isAtomizable()
isAtomizable in interface ItemTypepublic int getRelationship(JavaExternalObjectType other)
other - the other external object typeTypeHierarchy, for example TypeHierarchy.SUBSUMESpublic String getDescription()
public boolean isAtomicType()
isAtomicType in interface ItemTypepublic 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 ItemTypevisitor - 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.