org.inria.ns.reflex.processor.asl.types.xs
Class AnyType

java.lang.Object
  extended by org.inria.ns.reflex.processor.asl.types.xs.AnyType
All Implemented Interfaces:
NamedType, Type

public class AnyType
extends Object
implements Type

The #xs:anyType type.

Author:
Philippe Poulard

Constructor Summary
AnyType()
           
 
Method Summary
 TypedData cast(Object o, XPathContext context)
          Cast an object to an xs:anyType.
 Comparator getComparator()
          Return null to indicate to compare typed data with their own comparators.
 Schema getOwnerSchema()
          Return the schema that owns this type definition.
 QName getParentType()
          Return the base type.
 QName getTypeName()
          Return #xs:anyType.
 TypedData parse(String string, XPathContext context)
          Parses a string to an any type.
 TypedData parse(TextCandidate candidate, XPathContext context)
          Parses a string to an any type.
 TypedData parse(TypedData data, XPathContext context)
          Parses the remainder of a typed data to an any type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnyType

public AnyType()
Method Detail

parse

public TypedData parse(TextCandidate candidate,
                       XPathContext context)
Parses a string to an any type.

Specified by:
parse in interface Type
Parameters:
candidate - The candidate to parse.
context - Not used.
Returns:
null

parse

public TypedData parse(TypedData data,
                       XPathContext context)
Parses the remainder of a typed data to an any type.

Parameters:
data - The data that has a remainder to parse.
context - Not used.
Returns:
null

parse

public TypedData parse(String string,
                       XPathContext context)
Parses a string to an any type.

Parameters:
string - The string to parse.
context - Not used.
Returns:
null

cast

public TypedData cast(Object o,
                      XPathContext context)
Cast an object to an xs:anyType.

Specified by:
cast in interface Type
Parameters:
o - The object to cast.
context - Not used.
Returns:
null

getTypeName

public QName getTypeName()
Return #xs:anyType.

Specified by:
getTypeName in interface NamedType
Returns:
xs:anyType.

getParentType

public QName getParentType()
Return the base type.

Specified by:
getParentType in interface Type
Returns:
null

getOwnerSchema

public Schema getOwnerSchema()
Return the schema that owns this type definition.

Specified by:
getOwnerSchema in interface Type
Returns:
The schema that owns this type definition.
See Also:
Type.getOwnerSchema()

getComparator

public Comparator getComparator()
Return null to indicate to compare typed data with their own comparators.

Specified by:
getComparator in interface Type
Returns:
null
See Also:
Type.getComparator()