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

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

public class AnySimpleType
extends Object
implements Type

The #xs:anySimpleType type.

Author:
Philippe Poulard

Constructor Summary
AnySimpleType()
           
 
Method Summary
 TypedData cast(Object o, XPathContext context)
          Cast an object to an xs:anySimpleType.
 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 #xs:anyType.
 QName getTypeName()
          Return #xs:anySimpleType.
 TypedData parse(String string, XPathContext context)
          Parses a string to an any simple type.
 TypedData parse(TextCandidate candidate, XPathContext context)
          Parses a string to an any simple type.
 TypedData parse(TypedData data, XPathContext context)
          Parses the remainder of a typed data to an any simple type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnySimpleType

public AnySimpleType()
Method Detail

parse

public TypedData parse(TextCandidate candidate,
                       XPathContext context)
Parses a string to an any simple 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 simple 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 simple 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:anySimpleType.

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

getTypeName

public QName getTypeName()
Return #xs:anySimpleType.

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

getParentType

public QName getParentType()
Return #xs:anyType.

Specified by:
getParentType in interface Type
Returns:
xs:anyType.
See Also:
AnyType

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()