org.apache.tools.ant.taskdefsClass Tstamp.Unit
- java.lang.Object
- org.apache.tools.ant.types.EnumeratedAttribute
- org.apache.tools.ant.taskdefs.Tstamp.Unit
- Enclosing class:
- Tstamp
public static class Tstamp.Unit extends EnumeratedAttributeset of valid units to use for time offsets.
Field Summary
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
Constructor Summary
Constructors Constructor and Description Unit()
Constructor for Unit enumerated type.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
getCalendarField()
Convert the value to int unit value.java.lang.String[]
getValues()
Get the valid values.
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
Method Detail
getCalendarField
public int getCalendarField()Convert the value to int unit value.
- Returns:
- an int value.
getValues
public java.lang.String[] getValues()Get the valid values.
- Specified by:
getValues
in classEnumeratedAttribute
- Returns:
- the value values.