Class CalendarParser
java.lang.Object
com.sun.msv.datatype.xsd.datetime.CalendarParser
Parses XML Schema date/time related types into
Calendar
.- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
parse()
static GregorianCalendar
protected final BigInteger
parseBigInteger
(int minDigits, int maxDigits) Parses the digits from vidx into aBigInteger
.protected void
protected final int
parseInt
(int minDigits, int maxDigits) protected void
setDay
(int i) protected void
setHours
(int i) protected void
setMinutes
(int i) protected void
setMonth
(int i) protected void
setSeconds
(int i) protected void
setTimeZone
(TimeZone tz) protected void
setYear
(int i) protected final void
Skips the extra digits.
-
Field Details
-
vidx
protected int vidx
-
-
Method Details
-
parse
- Throws:
IllegalArgumentException
-
parseFractionSeconds
protected void parseFractionSeconds() -
setTimeZone
-
setSeconds
protected void setSeconds(int i) -
setMinutes
protected void setMinutes(int i) -
setHours
protected void setHours(int i) -
setDay
protected void setDay(int i) -
setMonth
protected void setMonth(int i) -
setYear
protected void setYear(int i) -
parse
- Throws:
IllegalArgumentException
-
skipDigits
protected final void skipDigits()Skips the extra digits. -
parseInt
- Throws:
IllegalArgumentException
-
parseBigInteger
protected final BigInteger parseBigInteger(int minDigits, int maxDigits) throws IllegalArgumentException Parses the digits from vidx into aBigInteger
. Number of digits can be obtained by comparing the difference ofvidx
.- Throws:
IllegalArgumentException
-