com.sun.msv.datatype.xsd.datetime
Interface IDateTimeValueType

All Superinterfaces:
Serializable
All Known Implementing Classes:
BigDateTimeValueType

public interface IDateTimeValueType
extends Serializable

Interface as value type of DateTimeType

Author:
Kohsuke KAWAGUCHI

Method Summary
 IDateTimeValueType add(ITimeDurationValueType duration)
          returns the result of addition of this object and TimeDuration.
 int compare(IDateTimeValueType rhs)
          compare two DateTimeValueType as defined in com.sun.msv.datatype/Comparator
 BigDateTimeValueType getBigValue()
           
 IDateTimeValueType normalize()
          gets the normalized IDateTimeValueType.
 Calendar toCalendar()
          Approximates the value represented by this object into a Calendar object.
 

Method Detail

getBigValue

BigDateTimeValueType getBigValue()

add

IDateTimeValueType add(ITimeDurationValueType duration)
returns the result of addition of this object and TimeDuration. this object will not be mutated.


normalize

IDateTimeValueType normalize()
gets the normalized IDateTimeValueType. normalized value always has GMT timezone or no timezone


compare

int compare(IDateTimeValueType rhs)
compare two DateTimeValueType as defined in com.sun.msv.datatype/Comparator


toCalendar

Calendar toCalendar()
Approximates the value represented by this object into a Calendar object. This conversion may lose accuracy.