wt.workflow.definer
Class TimeToElapse

java.lang.Object
  extended bywt.workflow.definer.TimeToElapse
All Implemented Interfaces:
Serializable

public class TimeToElapse
extends Object
implements Serializable

Models elapsed time in workflows.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  long duration
           
private static String RESOURCE
           
 
Constructor Summary
TimeToElapse(long duration)
          Constructs a TimeToElapse object from the time given in milliseconds.
 
Method Summary
 boolean equals(Object obj)
           
 int getDays()
           
 long getTimeToElapse()
          Retrieves the time to elapse in milliseconds.
 long longValue()
          Retrieves the time to elapse in milliseconds.
 void setTimeToElapse(int days)
          Sets the time to elapse given the number of days.
 void setTimeToElapse(int days, int hours, int minutes, int seconds)
          Sets the time to elapse given the number of days, hours, minutes and seconds.
 String toString()
          Returns string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

duration

private long duration
Constructor Detail

TimeToElapse

public TimeToElapse(long duration)
Constructs a TimeToElapse object from the time given in milliseconds.

Supported API: true

Parameters:
duration -
Method Detail

setTimeToElapse

public void setTimeToElapse(int days,
                            int hours,
                            int minutes,
                            int seconds)
Sets the time to elapse given the number of days, hours, minutes and seconds.

Supported API: true

Parameters:
days -
hours -
minutes -
seconds -

setTimeToElapse

public void setTimeToElapse(int days)
Sets the time to elapse given the number of days.

Supported API: true

Parameters:
days -

getTimeToElapse

public long getTimeToElapse()
Retrieves the time to elapse in milliseconds.

Supported API: true

Returns:
long

longValue

public long longValue()
Retrieves the time to elapse in milliseconds.

Supported API: true

Returns:
long

toString

public String toString()
Returns string representation of the object. Used mostly for debugging purposes: not appropriate for GUI use.

Supported API: false

Returns:
String

equals

public boolean equals(Object obj)

getDays

public int getDays()