org.apache.tools.ant.taskdefs.optional

Class PropertyFile.Unit

Enclosing Class:
PropertyFile

public static class PropertyFile.Unit
extends EnumeratedAttribute

Borrowed from Tstamp
Since:
Ant 1.5
To do:
share all this time stuff across many tasks as a datetime datatype

Field Summary

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

value

Constructor Summary

Unit()
no arg constructor

Method Summary

int
getCalendarField()
Convert the value to a Calendar field index.
String[]
getValues()
.

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

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

Constructor Details

Unit

public Unit()
no arg constructor

Method Details

getCalendarField

public int getCalendarField()
Convert the value to a Calendar field index.
Returns:
the calander value.

getValues

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