Class PreciseCalendarParser
- java.lang.Object
-
- com.sun.msv.datatype.xsd.datetime.PreciseCalendarParser
-
public class PreciseCalendarParser extends Object
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected int
vidx
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
parse()
static BigDateTimeValueType
parse(String format, String value)
protected BigInteger
parseBigInteger(int minDigits, int maxDigits)
Parses the digits from vidx into aBigInteger
.protected void
parseFractionSeconds()
protected 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 void
skipDigits()
Skips the extra digits.
-
-
-
Method Detail
-
parse
public static BigDateTimeValueType parse(String format, String value) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
parseFractionSeconds
protected void parseFractionSeconds()
-
setTimeZone
protected void setTimeZone(TimeZone tz)
-
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
public void parse() throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
skipDigits
protected final void skipDigits()
Skips the extra digits.
-
parseInt
protected final int parseInt(int minDigits, int maxDigits) throws IllegalArgumentException
- 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
-
-