net.sf.saxon.type
Class AnyType

java.lang.Object
  extended by net.sf.saxon.type.SchemaType
      extended by net.sf.saxon.type.AnyType
All Implemented Interfaces:
Serializable, SourceLocator

public final class AnyType
extends SchemaType

A Class which represents the XML Schema AnyType.

Version:
$Revision: 1.1 $ $Date: 2004/03/09 10:10:35 $
Author:
Keith Visco
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.saxon.type.SchemaType
ALL_DERIVATIONS, DERIVE_BY_EXTENSION, DERIVE_BY_LIST, DERIVE_BY_RESTRICTION, DERIVE_BY_SUBSTITUTION, DERIVE_BY_UNION, finalProhibitions, INVALID, UNVALIDATED, VALIDATED, VALIDATING, validationPhase
 
Method Summary
 String getDescription()
          Get a description of this type for use in diagnostics
static AnyType getInstance()
          Get the singular instance of this class
 String getLocalName()
          Returns the name of this type.
 SequenceIterator getTypedValue(NodeInfo node)
          Get the typed value of a node that is annotated with this schema type
 boolean isSimpleType()
          Returns true if this SchemaType is a SimpleType
 boolean validate(ErrorListener errorListener)
          Checks the validity of this Schema defintion.
 
Methods inherited from class net.sf.saxon.type.SchemaType
allowsDerivation, checkDerivation, containingDeclarationIsElement, getBaseType, getBaseTypeFingerprint, getBlock, getColumnNumber, getContainingDeclarationName, getDerivationMethod, getDisplayName, getFingerprint, getLineNumber, getNamePool, getPublicId, getSystemId, isComplexType, isValidRestriction, setBaseType, setBaseTypeFingerprint, setContainingDeclaration, setDerivationMethod, setDerivationMethodName, setFinal, setFinalProhibitions, setFingerprint, setLineNumber, setLocalName, setLocator, setNamePool, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static AnyType getInstance()
Get the singular instance of this class

Returns:
the singular object representing xs:anyType

isSimpleType

public boolean isSimpleType()
Returns true if this SchemaType is a SimpleType

Specified by:
isSimpleType in class SchemaType
Returns:
false

getLocalName

public String getLocalName()
Returns the name of this type. This method always returns 'anyType'.

Overrides:
getLocalName in class SchemaType
Returns:
the name of this type.

getDescription

public String getDescription()
Get a description of this type for use in diagnostics

Overrides:
getDescription in class SchemaType

validate

public boolean validate(ErrorListener errorListener)
                 throws SchemaException
Checks the validity of this Schema defintion.

Throws:
SchemaException - when this Schema definition is invalid.

getTypedValue

public SequenceIterator getTypedValue(NodeInfo node)
                               throws XPathException
Get the typed value of a node that is annotated with this schema type

Specified by:
getTypedValue in class SchemaType
Throws:
XPathException