com.sun.msv.datatype.xsd.datetime
Class PreciseCalendarParser

java.lang.Object
  extended by com.sun.msv.datatype.xsd.datetime.PreciseCalendarParser

public class PreciseCalendarParser
extends Object

Author:
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)

Field Summary
protected  int vidx
           
 
Method Summary
 void parse()
           
static BigDateTimeValueType parse(String format, String value)
           
protected  BigInteger parseBigInteger(int minDigits, int maxDigits)
          Parses the digits from vidx into a BigInteger.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vidx

protected int vidx
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 a BigInteger. Number of digits can be obtained by comparing the difference of vidx.

Throws:
IllegalArgumentException


MSV