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

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

value

Constructor Summary

Unit()
bean constructor

Method Summary

long
getMultiplier()
String[]
getValues()
This is the only method a subclass needs to implement.

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

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

Constructor Details

Unit

public Unit()
bean constructor

Method Details

getMultiplier

public long getMultiplier()

getValues

public String[] getValues()
This is the only method a subclass needs to implement.
Overrides:
getValues in interface EnumeratedAttribute
Returns:
an array holding all possible values of the enumeration. The order of elements must be fixed so that indexOfValue(String) always return the same index for the same value.

Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.