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 TypeMethodDescriptionvoidparse()static GregorianCalendarprotected final BigIntegerparseBigInteger(int minDigits, int maxDigits) Parses the digits from vidx into aBigInteger.protected voidprotected final intparseInt(int minDigits, int maxDigits) protected voidsetDay(int i) protected voidsetHours(int i) protected voidsetMinutes(int i) protected voidsetMonth(int i) protected voidsetSeconds(int i) protected voidsetTimeZone(TimeZone tz) protected voidsetYear(int i) protected final voidSkips 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
-