org.sakaiproject.mock.domain
Class Time

java.lang.Object
  extended by org.sakaiproject.mock.domain.Time
All Implemented Interfaces:
Serializable, Cloneable, Comparable, org.sakaiproject.time.api.Time, org.sakaiproject.time.api.TimeBreakdown

public class Time
extends Object
implements org.sakaiproject.time.api.Time, org.sakaiproject.time.api.TimeBreakdown

See Also:
Serialized Form

Constructor Summary
Time(Date date)
           
 
Method Summary
 boolean after(org.sakaiproject.time.api.Time other)
           
 boolean before(org.sakaiproject.time.api.Time other)
           
 org.sakaiproject.time.api.TimeBreakdown breakdownGmt()
           
 org.sakaiproject.time.api.TimeBreakdown breakdownLocal()
           
 Object clone()
           
 int compareTo(Object o)
           
 int getDay()
           
 String getDisplay()
           
 int getHour()
           
 int getMin()
           
 int getMonth()
           
 int getMs()
           
 int getSec()
           
 long getTime()
           
 int getYear()
           
 void setDay(int day)
           
 void setHour(int hour)
           
 void setMin(int minute)
           
 void setMonth(int month)
           
 void setMs(int millisecond)
           
 void setSec(int second)
           
 void setTime(long value)
           
 void setYear(int year)
           
 String toStringFilePath()
           
 String toStringGmtDate()
           
 String toStringGmtFull()
           
 String toStringGmtShort()
           
 String toStringGmtTime()
           
 String toStringLocal()
           
 String toStringLocalDate()
           
 String toStringLocalFull()
           
 String toStringLocalFullZ()
           
 String toStringLocalShort()
           
 String toStringLocalShortDate()
           
 String toStringLocalTime()
           
 String toStringLocalTime24()
           
 String toStringLocalTimeZ()
           
 String toStringRFC822Local()
           
 String toStringSql()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Time

public Time(Date date)
Method Detail

clone

public Object clone()
Specified by:
clone in interface org.sakaiproject.time.api.Time
Overrides:
clone in class Object

after

public boolean after(org.sakaiproject.time.api.Time other)
Specified by:
after in interface org.sakaiproject.time.api.Time

before

public boolean before(org.sakaiproject.time.api.Time other)
Specified by:
before in interface org.sakaiproject.time.api.Time

breakdownGmt

public org.sakaiproject.time.api.TimeBreakdown breakdownGmt()
Specified by:
breakdownGmt in interface org.sakaiproject.time.api.Time

breakdownLocal

public org.sakaiproject.time.api.TimeBreakdown breakdownLocal()
Specified by:
breakdownLocal in interface org.sakaiproject.time.api.Time

getDisplay

public String getDisplay()
Specified by:
getDisplay in interface org.sakaiproject.time.api.Time

getTime

public long getTime()
Specified by:
getTime in interface org.sakaiproject.time.api.Time

setTime

public void setTime(long value)
Specified by:
setTime in interface org.sakaiproject.time.api.Time

toStringFilePath

public String toStringFilePath()
Specified by:
toStringFilePath in interface org.sakaiproject.time.api.Time

toStringGmtDate

public String toStringGmtDate()
Specified by:
toStringGmtDate in interface org.sakaiproject.time.api.Time

toStringGmtFull

public String toStringGmtFull()
Specified by:
toStringGmtFull in interface org.sakaiproject.time.api.Time

toStringGmtShort

public String toStringGmtShort()
Specified by:
toStringGmtShort in interface org.sakaiproject.time.api.Time

toStringGmtTime

public String toStringGmtTime()
Specified by:
toStringGmtTime in interface org.sakaiproject.time.api.Time

toStringLocal

public String toStringLocal()
Specified by:
toStringLocal in interface org.sakaiproject.time.api.Time

toStringLocalDate

public String toStringLocalDate()
Specified by:
toStringLocalDate in interface org.sakaiproject.time.api.Time

toStringLocalFull

public String toStringLocalFull()
Specified by:
toStringLocalFull in interface org.sakaiproject.time.api.Time

toStringLocalFullZ

public String toStringLocalFullZ()
Specified by:
toStringLocalFullZ in interface org.sakaiproject.time.api.Time

toStringLocalShort

public String toStringLocalShort()
Specified by:
toStringLocalShort in interface org.sakaiproject.time.api.Time

toStringLocalShortDate

public String toStringLocalShortDate()
Specified by:
toStringLocalShortDate in interface org.sakaiproject.time.api.Time

toStringLocalTime

public String toStringLocalTime()
Specified by:
toStringLocalTime in interface org.sakaiproject.time.api.Time

toStringLocalTime24

public String toStringLocalTime24()
Specified by:
toStringLocalTime24 in interface org.sakaiproject.time.api.Time

toStringLocalTimeZ

public String toStringLocalTimeZ()
Specified by:
toStringLocalTimeZ in interface org.sakaiproject.time.api.Time

toStringRFC822Local

public String toStringRFC822Local()
Specified by:
toStringRFC822Local in interface org.sakaiproject.time.api.Time

toStringSql

public String toStringSql()
Specified by:
toStringSql in interface org.sakaiproject.time.api.Time

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

getDay

public int getDay()
Specified by:
getDay in interface org.sakaiproject.time.api.TimeBreakdown

getHour

public int getHour()
Specified by:
getHour in interface org.sakaiproject.time.api.TimeBreakdown

getMin

public int getMin()
Specified by:
getMin in interface org.sakaiproject.time.api.TimeBreakdown

getMonth

public int getMonth()
Specified by:
getMonth in interface org.sakaiproject.time.api.TimeBreakdown

getMs

public int getMs()
Specified by:
getMs in interface org.sakaiproject.time.api.TimeBreakdown

getSec

public int getSec()
Specified by:
getSec in interface org.sakaiproject.time.api.TimeBreakdown

getYear

public int getYear()
Specified by:
getYear in interface org.sakaiproject.time.api.TimeBreakdown

setDay

public void setDay(int day)
Specified by:
setDay in interface org.sakaiproject.time.api.TimeBreakdown

setHour

public void setHour(int hour)
Specified by:
setHour in interface org.sakaiproject.time.api.TimeBreakdown

setMin

public void setMin(int minute)
Specified by:
setMin in interface org.sakaiproject.time.api.TimeBreakdown

setMonth

public void setMonth(int month)
Specified by:
setMonth in interface org.sakaiproject.time.api.TimeBreakdown

setMs

public void setMs(int millisecond)
Specified by:
setMs in interface org.sakaiproject.time.api.TimeBreakdown

setSec

public void setSec(int second)
Specified by:
setSec in interface org.sakaiproject.time.api.TimeBreakdown

setYear

public void setYear(int year)
Specified by:
setYear in interface org.sakaiproject.time.api.TimeBreakdown


Copyright © 2003-2013 Sakai Project. All Rights Reserved.