Class ExternalObjectType

java.lang.Object
net.sf.saxon.type.AnyExternalObjectType
net.sf.saxon.type.ExternalObjectType
All Implemented Interfaces:
ItemType
Direct Known Subclasses:
JavaExternalObjectType

public abstract class ExternalObjectType extends AnyExternalObjectType
This class represents the type of an external object returned by an extension function, or supplied as an external variable/parameter.
  • Constructor Details

    • ExternalObjectType

      public ExternalObjectType()
  • Method Details

    • getName

      public abstract String getName()
      Get the name of this type.
      Returns:
      the fully qualified name of the Java or .NET class.
    • getTargetNamespace

      public abstract String getTargetNamespace()
      Get the target namespace of this type. For Java this is always NamespaceConstant.JAVA_TYPE. For .net it is always NamespaceConstant.DOT_NET_TYPE
      Returns:
      the target namespace of this type definition.
    • getTypeName

      public abstract StructuredQName getTypeName()
      Get the name of this type
      Returns:
      a name whose namespace indicates the space of Java or .net classes, and whose local name is derived from the fully qualified name of the Java or .net class
    • isPlainType

      public final boolean isPlainType()
      Ask whether this is a plain type (a type whose instances are always atomic values)
      Specified by:
      isPlainType in interface ItemType
      Overrides:
      isPlainType in class AnyExternalObjectType
      Returns:
      false. External object types are not considered to be atomic types
    • toString

      public String toString()
      Overrides:
      toString in class Object