Class BigDateTimeValueType

java.lang.Object
com.sun.msv.datatype.xsd.datetime.BigDateTimeValueType
All Implemented Interfaces:
IDateTimeValueType, Serializable

public class BigDateTimeValueType extends Object implements IDateTimeValueType
DateTimeValueType object that can hold all lexically valid dateTime value. This class provides:
  1. Unlimited digits for year (e.g., "year 9999999999999999999999")
  2. Unlimited digits for fraction of second (e.g. 0.00000000000001 sec)
To provide methods that can change date/time values, normalize method should be modified too.
See Also:
  • Field Details

    • year

      private BigInteger year
      year value. this variable is null if no year is specified. Since there is no year 0, value 0 indicates year -1. -1 indicates -2, and so forth.
    • month

      private Integer month
      month (always between 0 and 11) this variable is null if no year is specified
    • day

      private Integer day
      day (always normalized, between 0-30) this variable is null if no year is specified
    • hour

      private Integer hour
      hour (always between 0 and 23) this variable is null if no year is specified
    • minute

      private Integer minute
      minute (always between 0 and 59) this variable is null if no year is specified
    • second

      private BigDecimal second
      second (always in [0,60) ) this variable is null if no year is specified
    • zone

      private TimeZone zone
      time zone specifier. null if missing
    • normalizedValue

      private IDateTimeValueType normalizedValue
      normalized DateTimeValue of this object. once when the normalized value is computed, the value is kept in this varible so that successive calls to normalize method need not have to compute it again. This approach assumes that modification to the date/time component will never be made.
    • serialVersionUID

      private static final long serialVersionUID
      See Also:
  • Constructor Details

    • BigDateTimeValueType

      public BigDateTimeValueType(BigDateTimeValueType base, TimeZone newTimeZone)
      creates an instance with the specified BigDateTimeValueType, with modified time zone. created object shares its date/time value component with the original one, so special care is necessary not to mutate those values.
    • BigDateTimeValueType

      public BigDateTimeValueType(BigInteger year, int month, int day, int hour, int minute, BigDecimal second, TimeZone timeZone)
    • BigDateTimeValueType

      public BigDateTimeValueType(BigInteger year, Integer month, Integer day, Integer hour, Integer minute, BigDecimal second, TimeZone timeZone)
    • BigDateTimeValueType

      public BigDateTimeValueType()
  • Method Details