com.sun.msv.datatype.xsd.datetime

Class BigDateTimeValueType

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.

Author: Kohsuke KAWAGUCHI

Constructor Summary
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(BigInteger year, int month, int day, int hour, int minute, BigDecimal second, TimeZone timeZone)
BigDateTimeValueType(BigInteger year, Integer month, Integer day, Integer hour, Integer minute, BigDecimal second, TimeZone timeZone)
BigDateTimeValueType()
Method Summary
IDateTimeValueTypeadd(ITimeDurationValueType _rhs)
intcompare(IDateTimeValueType o)
booleanequals(Object o)
booleanequals(IDateTimeValueType rhs)
booleanequals(BigDateTimeValueType lhs, BigDateTimeValueType rhs)
BigDateTimeValueTypegetBigValue()
IntegergetDay()
IntegergetHour()
IntegergetMinute()
IntegergetMonth()
BigDecimalgetSecond()
TimeZonegetTimeZone()
BigIntegergetYear()
inthashCode()
IDateTimeValueTypenormalize()
CalendartoCalendar()
StringtoString()
gets a human-readable representation of this object. return value is not intended to be compliant with the canonical representation of "dateTime" type.

Constructor Detail

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 Detail

add

public IDateTimeValueType add(ITimeDurationValueType _rhs)

compare

public int compare(IDateTimeValueType o)

equals

public boolean equals(Object o)

equals

public boolean equals(IDateTimeValueType rhs)

equals

public boolean equals(BigDateTimeValueType lhs, BigDateTimeValueType rhs)

getBigValue

public BigDateTimeValueType getBigValue()

getDay

public Integer getDay()

getHour

public Integer getHour()

getMinute

public Integer getMinute()

getMonth

public Integer getMonth()

getSecond

public BigDecimal getSecond()

getTimeZone

public TimeZone getTimeZone()

getYear

public BigInteger getYear()

hashCode

public int hashCode()

normalize

public IDateTimeValueType normalize()

toCalendar

public Calendar toCalendar()

toString

public String toString()
gets a human-readable representation of this object. return value is not intended to be compliant with the canonical representation of "dateTime" type.