org.apache.tools.ant.taskdefs

Class WaitFor.Unit

Enclosing Class:
WaitFor

public static class WaitFor.Unit
extends EnumeratedAttribute

The enumeration of units: millisecond, second, minute, hour, day, week
To do:
we use timestamps in many places, why not factor this out

Field Summary

static String
DAY
day string
static String
HOUR
hour string
static String
MILLISECOND
millisecond string
static String
MINUTE
minute string
static String
SECOND
second string
static String
WEEK
week string

Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute

value

Constructor Summary

Unit()
Constructor the Unit enumerated type.

Method Summary

long
getMultiplier()
Convert the value to a multipler (millisecond to unit).
String[]
getValues()

Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute

containsValue, getIndex, getInstance, getValue, getValues, indexOfValue, setValue, toString

Field Details

DAY

public static final String DAY
day string

HOUR

public static final String HOUR
hour string

MILLISECOND

public static final String MILLISECOND
millisecond string

MINUTE

public static final String MINUTE
minute string

SECOND

public static final String SECOND
second string

WEEK

public static final String WEEK
week string

Constructor Details

Unit

public Unit()
Constructor the Unit enumerated type.

Method Details

getMultiplier

public long getMultiplier()
Convert the value to a multipler (millisecond to unit).
Returns:
a multipler (a long value)

getValues

public String[] getValues()
Overrides:
getValues in interface EnumeratedAttribute