org.apache.tools.ant.taskdefs

Class Tstamp.Unit

Enclosing Class:
Tstamp

public static class Tstamp.Unit
extends EnumeratedAttribute

set of valid units to use for time offsets.

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 B) 2000-2006 Apache Software Foundation. All Rights Reserved.