public class BigDateTimeValueType extends java.lang.Object implements IDateTimeValueType
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
day
day (always normalized, between 0-30)
this variable is null if no year is specified
|
private java.lang.Integer |
hour
hour (always between 0 and 23)
this variable is null if no year is specified
|
private java.lang.Integer |
minute
minute (always between 0 and 59)
this variable is null if no year is specified
|
private java.lang.Integer |
month
month (always between 0 and 11)
this variable is null if no year is specified
|
private IDateTimeValueType |
normalizedValue
normalized DateTimeValue of this object.
|
private java.math.BigDecimal |
second
second (always in [0,60) )
this variable is null if no year is specified
|
private static long |
serialVersionUID |
private java.math.BigInteger |
year
year value.
|
private java.util.TimeZone |
zone
time zone specifier.
|
Constructor and Description |
---|
BigDateTimeValueType() |
BigDateTimeValueType(BigDateTimeValueType base,
java.util.TimeZone newTimeZone)
creates an instance with the specified BigDateTimeValueType,
with modified time zone.
|
BigDateTimeValueType(java.math.BigInteger year,
java.lang.Integer month,
java.lang.Integer day,
java.lang.Integer hour,
java.lang.Integer minute,
java.math.BigDecimal second,
java.util.TimeZone timeZone) |
BigDateTimeValueType(java.math.BigInteger year,
int month,
int day,
int hour,
int minute,
java.math.BigDecimal second,
java.util.TimeZone timeZone) |
Modifier and Type | Method and Description |
---|---|
IDateTimeValueType |
add(ITimeDurationValueType _rhs)
returns the result of addition of this object and TimeDuration.
|
protected static int |
compare(BigDateTimeValueType lhs,
BigDateTimeValueType rhs)
compares two BigDateTimeValueType and returns one of the constant defined in
Comparator . |
int |
compare(IDateTimeValueType o)
compare two DateTimeValueType as defined in
com.sun.msv.datatype/Comparator
|
protected java.util.TimeZone |
createJavaTimeZone()
Deprecated.
use
getTimeZone() . |
private static java.math.BigInteger[] |
divideAndRemainder(java.math.BigInteger x1,
java.math.BigInteger x2) |
boolean |
equals(BigDateTimeValueType lhs,
BigDateTimeValueType rhs) |
boolean |
equals(IDateTimeValueType rhs) |
boolean |
equals(java.lang.Object o) |
BigDateTimeValueType |
getBigValue() |
java.lang.Integer |
getDay() |
java.lang.Integer |
getHour() |
java.lang.Integer |
getMinute() |
java.lang.Integer |
getMonth() |
java.math.BigDecimal |
getSecond() |
java.util.TimeZone |
getTimeZone() |
java.math.BigInteger |
getYear() |
int |
hashCode() |
IDateTimeValueType |
normalize()
gets the normalized IDateTimeValueType.
|
private static java.math.BigDecimal |
nullAs0(java.math.BigDecimal o) |
private static java.math.BigInteger |
nullAs0(java.math.BigInteger o) |
private java.math.BigDecimal |
signed(BigTimeDurationValueType dur,
java.math.BigDecimal i) |
private java.math.BigInteger |
signed(BigTimeDurationValueType dur,
java.math.BigInteger i) |
java.util.Calendar |
toCalendar()
Approximates the value represented by this object into a Calendar object.
|
java.lang.String |
toString()
gets a human-readable representation of this object.
|
private java.math.BigInteger year
private java.lang.Integer month
private java.lang.Integer day
private java.lang.Integer hour
private java.lang.Integer minute
private java.math.BigDecimal second
private java.util.TimeZone zone
private IDateTimeValueType normalizedValue
private static final long serialVersionUID
public BigDateTimeValueType(BigDateTimeValueType base, java.util.TimeZone newTimeZone)
public BigDateTimeValueType(java.math.BigInteger year, int month, int day, int hour, int minute, java.math.BigDecimal second, java.util.TimeZone timeZone)
public BigDateTimeValueType(java.math.BigInteger year, java.lang.Integer month, java.lang.Integer day, java.lang.Integer hour, java.lang.Integer minute, java.math.BigDecimal second, java.util.TimeZone timeZone)
public BigDateTimeValueType()
public java.math.BigInteger getYear()
public java.lang.Integer getMonth()
public java.lang.Integer getDay()
public java.lang.Integer getHour()
public java.lang.Integer getMinute()
public java.math.BigDecimal getSecond()
public java.util.TimeZone getTimeZone()
public BigDateTimeValueType getBigValue()
getBigValue
in interface IDateTimeValueType
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(IDateTimeValueType rhs)
public boolean equals(BigDateTimeValueType lhs, BigDateTimeValueType rhs)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compare(IDateTimeValueType o)
IDateTimeValueType
compare
in interface IDateTimeValueType
protected static int compare(BigDateTimeValueType lhs, BigDateTimeValueType rhs)
Comparator
.
Order-relation between two dateTime is defined in
http://www.w3.org/TR/xmlschema-2/#dateTimepublic IDateTimeValueType normalize()
IDateTimeValueType
normalize
in interface IDateTimeValueType
private static java.math.BigInteger nullAs0(java.math.BigInteger o)
private static java.math.BigDecimal nullAs0(java.math.BigDecimal o)
private static java.math.BigInteger[] divideAndRemainder(java.math.BigInteger x1, java.math.BigInteger x2)
public IDateTimeValueType add(ITimeDurationValueType _rhs)
IDateTimeValueType
add
in interface IDateTimeValueType
private java.math.BigInteger signed(BigTimeDurationValueType dur, java.math.BigInteger i)
private java.math.BigDecimal signed(BigTimeDurationValueType dur, java.math.BigDecimal i)
public java.util.Calendar toCalendar()
IDateTimeValueType
toCalendar
in interface IDateTimeValueType
protected java.util.TimeZone createJavaTimeZone()
getTimeZone()
.