Top Description Fields Constructors Methods
com.sun.msv.datatype.xsd.datetime

pack-priv abstract Class AbstractCalendarParser

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.msv.datatype.xsd.datetime.CalendarParser, com.sun.msv.datatype.xsd.datetime.PreciseCalendarParser
Imports
java.math.BigInteger, java.util.SimpleTimeZone

Parses XML Schema date/time related types into a structure.
Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private int
private final int
private final String
private final String
protected int
private final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
private static boolean
isDigit(char ch)

public void
protected final BigInteger
parseBigInteger(int minDigits, int maxDigits)

Parses the digits from vidx into a BigInteger.

protected abstract void
protected final int
parseInt(int minDigits, int maxDigits)

private char
peek()

private char
read()

protected abstract void
setDay(int i)

protected abstract void
setHours(int i)

protected abstract void
setMinutes(int i)

protected abstract void
setMonth(int i)

protected abstract void
setSeconds(int i)

protected abstract void
protected abstract void
setYear(int i)

private void
skip(char ch)

protected final void
skipDigits()

Skips the extra digits.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fidxback to summary
private int fidx
flenback to summary
private final int flen
formatback to summary
private final String format
valueback to summary
private final String value
vidxback to summary
protected int vidx
vlenback to summary
private final int vlen

Constructor Detail

AbstractCalendarParserback to summary
protected AbstractCalendarParser(String format, String value)

Method Detail

isDigitback to summary
private static boolean isDigit(char ch)
parseback to summary
public void parse() throws IllegalArgumentException
parseBigIntegerback to summary
protected final BigInteger parseBigInteger(int minDigits, int maxDigits) throws IllegalArgumentException

Parses the digits from vidx into a BigInteger. Number of digits can be obtained by comparing the difference of vidx.

parseFractionSecondsback to summary
protected abstract void parseFractionSeconds()
parseIntback to summary
protected final int parseInt(int minDigits, int maxDigits) throws IllegalArgumentException
peekback to summary
private char peek() throws IllegalArgumentException
readback to summary
private char read() throws IllegalArgumentException
setDayback to summary
protected abstract void setDay(int i)
setHoursback to summary
protected abstract void setHours(int i)
setMinutesback to summary
protected abstract void setMinutes(int i)
setMonthback to summary
protected abstract void setMonth(int i)
setSecondsback to summary
protected abstract void setSeconds(int i)
setTimeZoneback to summary
protected abstract void setTimeZone(TimeZone tz)
setYearback to summary
protected abstract void setYear(int i)
skipback to summary
private void skip(char ch) throws IllegalArgumentException
skipDigitsback to summary
protected final void skipDigits()

Skips the extra digits.