Package org.apache.tools.ant.taskdefs
Class WaitFor.Unit
- java.lang.Object
- 
- org.apache.tools.ant.types.EnumeratedAttribute
- 
- org.apache.tools.ant.taskdefs.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 SummaryFields Modifier and Type Field Description static java.lang.StringDAYday stringstatic java.lang.StringHOURhour stringstatic java.lang.StringMILLISECONDmillisecond stringstatic java.lang.StringMINUTEminute stringstatic java.lang.StringSECONDsecond stringstatic java.lang.StringWEEKweek string- 
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttributevalue
 
- 
 - 
Constructor SummaryConstructors Constructor Description Unit()Constructor the Unit enumerated type.
 - 
Method SummaryModifier and Type Method Description longgetMultiplier()Convert the value to a multiplier (millisecond to unit).java.lang.String[]getValues()This is the only method a subclass needs to implement.- 
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttributecontainsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
 
- 
 
- 
- 
- 
Field Detail- 
MILLISECONDpublic static final java.lang.String MILLISECOND millisecond string- See Also:
- Constant Field Values
 
 - 
SECONDpublic static final java.lang.String SECOND second string- See Also:
- Constant Field Values
 
 - 
MINUTEpublic static final java.lang.String MINUTE minute string- See Also:
- Constant Field Values
 
 - 
HOURpublic static final java.lang.String HOUR hour string- See Also:
- Constant Field Values
 
 - 
DAYpublic static final java.lang.String DAY day string- See Also:
- Constant Field Values
 
 - 
WEEKpublic static final java.lang.String WEEK week string- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getMultiplierpublic long getMultiplier() Convert the value to a multiplier (millisecond to unit).- Returns:
- a multiplier (a long value)
 
 - 
getValuespublic java.lang.String[] getValues() Description copied from class:EnumeratedAttributeThis is the only method a subclass needs to implement.- Specified by:
- getValuesin class- 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.
- See Also:
- EnumeratedAttribute.getValues()
 
 
- 
 
-