Class PreciseCalendarParser
java.lang.Object
com.sun.msv.datatype.xsd.datetime.PreciseCalendarParser
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidparse()static BigDateTimeValueTypeprotected 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
public static BigDateTimeValueType parse(String format, String value) throws IllegalArgumentException - 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
-