public class

TimeDV

extends AbstractDateTimeDV
java.lang.Object
   ↳ org.apache.xerces.impl.dv.xs.TypeValidator
     ↳ org.apache.xerces.impl.dv.xs.AbstractDateTimeDV
       ↳ org.apache.xerces.impl.dv.xs.TimeDV

Class Overview

Validator for <time> datatype (W3C Schema Datatypes)

Summary

[Expand]
Inherited Constants
From class org.apache.xerces.impl.dv.xs.AbstractDateTimeDV
From class org.apache.xerces.impl.dv.xs.TypeValidator
[Expand]
Inherited Fields
From class org.apache.xerces.impl.dv.xs.AbstractDateTimeDV
Public Constructors
TimeDV()
Public Methods
Object getActualValue(String content, ValidationContext context)
Convert a string to a compiled form
Protected Methods
String dateToString(AbstractDateTimeDV.DateTimeData date)
Converts time object representation to String
XMLGregorianCalendar getXMLGregorianCalendar(AbstractDateTimeDV.DateTimeData date)
AbstractDateTimeDV.DateTimeData parse(String str)
Parses, validates and computes normalized version of time object
[Expand]
Inherited Methods
From class org.apache.xerces.impl.dv.xs.AbstractDateTimeDV
From class org.apache.xerces.impl.dv.xs.TypeValidator
From class java.lang.Object

Public Constructors

public TimeDV ()

Public Methods

public Object getActualValue (String content, ValidationContext context)

Convert a string to a compiled form

Parameters
content The lexical representation of time
Returns
  • a valid and normalized time object

Protected Methods

protected String dateToString (AbstractDateTimeDV.DateTimeData date)

Converts time object representation to String

Parameters
date time object
Returns
  • lexical representation of time: hh:mm:ss.sss with an optional time zone sign

protected XMLGregorianCalendar getXMLGregorianCalendar (AbstractDateTimeDV.DateTimeData date)

protected AbstractDateTimeDV.DateTimeData parse (String str)

Parses, validates and computes normalized version of time object

Parameters
str The lexical representation of time object hh:mm:ss.sss with possible time zone Z or (-),(+)hh:mm Pattern: "(\\d\\d):(\\d\\d):(\\d\\d)(\\.(\\d)*)?(Z|(([-+])(\\d\\d)(:(\\d\\d))?))?")
Returns
  • normalized time representation
Throws
SchemaDateTimeException Invalid lexical representation