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()
Constructor for Unit enumerated type.

Method Summary

int
getCalendarField()
Convert the value to int unit value.
String[]
getValues()
Get the valid values.

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

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

Constructor Details

Unit

public Unit()
Constructor for Unit enumerated type.

Method Details

getCalendarField

public int getCalendarField()
Convert the value to int unit value.
Returns:
an int value.

getValues

public String[] getValues()
Get the valid values.
Overrides:
getValues in interface EnumeratedAttribute
Returns:
the value values.