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

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

public class DateType
extends DateTimeType
implements Type

The #xs:date type.

Author:
Philippe Poulard

Constructor Summary
DateType()
           
 
Method Summary
 QName getTypeName()
          Return #xs:date.
 TypedData parse(String date, XPathContext context)
          Parses a string to a date.
 TypedData parse(TextCandidate date, XPathContext context)
          Parses a string to a date.
 TypedData parse(TypedData data, XPathContext context)
          Parses the remainder of a typed data to a date.
 
Methods inherited from class org.inria.ns.reflex.processor.asl.types.xs.DateTimeType
cast, getComparator, getOwnerSchema, getParentType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.inria.ns.reflex.processor.asl.types.Type
cast, getComparator, getOwnerSchema, getParentType
 

Constructor Detail

DateType

public DateType()
Method Detail

parse

public TypedData parse(TextCandidate date,
                       XPathContext context)
                throws TypeFormatException
Parses a string to a date.

Specified by:
parse in interface Type
Overrides:
parse in class DateTimeType
Parameters:
date - The date to parse.
context - Not used.
Returns:
The typed date that wraps the date and the remainder.
Throws:
TypeFormatException - When the input string can't be a date.
See Also:
CalendarData

parse

public TypedData parse(TypedData data,
                       XPathContext context)
                throws TypeFormatException
Parses the remainder of a typed data to a date.

Overrides:
parse in class DateTimeType
Parameters:
data - The data that has a remainder to parse.
context - Not used.
Returns:
The typed data that wraps the date and the remainder.
Throws:
TypeFormatException - When the input string can't be a date.
See Also:
CalendarData

parse

public TypedData parse(String date,
                       XPathContext context)
                throws TypeFormatException
Parses a string to a date.

Overrides:
parse in class DateTimeType
Parameters:
date - The date to parse.
context - Not used.
Returns:
The typed data that wraps the date and the remainder.
Throws:
TypeFormatException - When the input string can't be a date.
See Also:
CalendarData

getTypeName

public QName getTypeName()
Return #xs:date.

Specified by:
getTypeName in interface NamedType
Overrides:
getTypeName in class DateTimeType
Returns:
xs:date.