|
Tea Java Runtime API Version 3.2.5 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.pdmfc.tea.modules.tos.STosObj
com.pdmfc.tea.modules.util.SDate
public class SDate
Implements an TOS object that represents an instant in time.
| Field Summary | |
|---|---|
java.util.Calendar |
_calendar
|
| Constructor Summary | |
|---|---|
SDate(STosClass myClass)
Initializes the object internal state. |
|
| Method Summary | |
|---|---|
java.lang.Object |
after(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "after" TOS method. |
java.lang.Object |
before(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "before" TOS method. |
java.lang.Object |
compare(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "compare" TOS method. |
java.lang.Object |
constructor(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "constructor" TOS method. |
java.lang.Object |
format(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "format" TOS method. |
java.util.Date |
getDate()
Fetches the java.util.Date represented by this TOS
instance. |
static SDate |
getDate(java.lang.Object[] args,
int index)
This is an utility method. |
java.lang.Object |
getDay(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "getDay" TOS method. |
java.lang.Object |
getDayOfWeek(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "getDayOfWeek" TOS method. |
java.lang.Object |
getHour(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "getHour" TOS method. |
java.lang.Object |
getMinute(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "getMinute" TOS method. |
java.lang.Object |
getMonth(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "getMonth" TOS method. |
java.lang.Object |
getSecond(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "getSecond" TOS method. |
static java.lang.String |
getTosClassName()
|
java.lang.Object |
getYear(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "getYear" TOS method. |
void |
initFromDate(java.util.Date date)
Changes the calendar date this object represents. |
void |
initFromDate(SDate aDate)
Initializes the object to represent the same date/time of another SDate. |
void |
initFromString(java.lang.String str)
Initializes the object with the date represented by the string argument. |
static SDate |
newInstance(SContext context)
|
java.lang.Object |
notSame(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "notSame" TOS method. |
java.lang.Object |
same(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "same" TOS method. |
java.lang.Object |
setDate(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "setDay" TOS method. |
java.lang.Object |
setTime(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "setTime TOS method. |
| Methods inherited from class com.pdmfc.tea.modules.tos.STosObj |
|---|
exec, getTosClass, init, part, selfObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.util.Calendar _calendar
| Constructor Detail |
|---|
public SDate(STosClass myClass)
throws STeaException
STeaException| Method Detail |
|---|
public void initFromDate(SDate aDate)
aDate - The SDate object used as source.
public void initFromString(java.lang.String str)
throws SRuntimeException
SRuntimeException - When the string does not have size 6, 8,
12 or 14, or one of the string components does not represent a valid
integer.public void initFromDate(java.util.Date date)
date - The new date this object will represent.public java.util.Date getDate()
java.util.Date represented by this TOS
instance.
java.util.Date object represented by this
TOS TDate instance.
public java.lang.Object constructor(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
SRuntimeException
public java.lang.Object getYear(SObjFunction obj,
SContext context,
java.lang.Object[] args)
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
public java.lang.Object getMonth(SObjFunction obj,
SContext context,
java.lang.Object[] args)
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
public java.lang.Object getDay(SObjFunction obj,
SContext context,
java.lang.Object[] args)
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
public java.lang.Object getHour(SObjFunction obj,
SContext context,
java.lang.Object[] args)
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
public java.lang.Object getMinute(SObjFunction obj,
SContext context,
java.lang.Object[] args)
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
public java.lang.Object getSecond(SObjFunction obj,
SContext context,
java.lang.Object[] args)
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
public java.lang.Object getDayOfWeek(SObjFunction obj,
SContext context,
java.lang.Object[] args)
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
public java.lang.Object setDate(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
SRuntimeException
public java.lang.Object setTime(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
SRuntimeException
public java.lang.Object format(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
SRuntimeException
public java.lang.Object compare(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws STeaException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
STeaException
public java.lang.Object before(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws STeaException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
STeaException
public java.lang.Object after(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws STeaException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
STeaException
public java.lang.Object same(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws STeaException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
STeaException
public java.lang.Object notSame(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws STeaException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
STeaException
public static SDate getDate(java.lang.Object[] args,
int index)
throws STeaException
index into a SDate.
args - Array of Object, supposed to be the
arguments received by a call to the Tea function.index - The index of the argument to convert.
STypeException - Thrown if args[index] is not
a SDate
STeaExceptionpublic static java.lang.String getTosClassName()
public static SDate newInstance(SContext context)
throws STeaException
STeaException
|
Tea Java Runtime API Version 3.2.5 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||