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

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

public class TimeType
extends DateTimeType
implements Type

The #xs:time type.

Author:
Philippe Poulard

Constructor Summary
TimeType()
           
 
Method Summary
 QName getTypeName()
          Return #xs:time.
 TypedData parse(String time, XPathContext context)
          Parses a string to a time.
 TypedData parse(TextCandidate time, XPathContext context)
          Parses a string to a time.
 TypedData parse(TypedData data, XPathContext context)
          Parses the remainder of a typed data to a time.
 
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

TimeType

public TimeType()
Method Detail

parse

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

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

parse

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

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 time and the remainder.
Throws:
TypeFormatException - When the input string can't be a time.
See Also:
CalendarData

parse

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

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

getTypeName

public QName getTypeName()
Return #xs:time.

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