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()
bean constructor

Method Summary

int
getCalendarField()
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

getCalendarField

public int getCalendarField()

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.