org.jbind.xml.instance.data
Class Time

java.lang.Object
  extended byorg.jbind.xml.instance.data.PointInTime
      extended byorg.jbind.xml.instance.data.Time
All Implemented Interfaces:
IPointInTime, ITime, java.io.Serializable

public class Time
extends PointInTime
implements ITime

Represents an instance in time. Time instances are always normalized to UTC.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jbind.xml.instance.data.PointInTime
myFraction, myHadTimeZone, myHour, myMinute, mySecond
 
Constructor Summary
Time(int anHour, int aMinute, int aSecond, java.math.BigDecimal aFraction, boolean aHadTimeZone)
           
 
Method Summary
 CompareResult compareTo(ITime aTime)
           
static ITime create(int anHour, int aMinute, int aSecond, java.math.BigDecimal aFraction, ITimeZone aTimeZone)
          Creates a time object.
 
Methods inherited from class org.jbind.xml.instance.data.PointInTime
equals, getFraction, getHour, getMinute, getSecond, hadTimeZone, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.core.data.IPointInTime
getFraction, getHour, getMinute, getSecond, hadTimeZone
 

Constructor Detail

Time

public Time(int anHour,
            int aMinute,
            int aSecond,
            java.math.BigDecimal aFraction,
            boolean aHadTimeZone)
Method Detail

create

public static ITime create(int anHour,
                           int aMinute,
                           int aSecond,
                           java.math.BigDecimal aFraction,
                           ITimeZone aTimeZone)
Creates a time object. If a time zone is specified then the time is adjusted correspondingly.


compareTo

public CompareResult compareTo(ITime aTime)
Specified by:
compareTo in interface ITime