org.apache.tools.ant.taskdefs.optional
Class PropertyFile.Entry.Type
- PropertyFile.Entry
public static class PropertyFile.Entry.Type
Enumerated attribute with the values "int", "date" and "string".
String[] | getValues() - This is the only method a subclass needs to implement.
|
static int | toType(String type)
|
DATE_TYPE
public static final int DATE_TYPE
- 1
INTEGER_TYPE
public static final int INTEGER_TYPE
- 0
STRING_TYPE
public static final int STRING_TYPE
- 2
getValues
public String[] getValues()
This is the only method a subclass needs to implement.
- getValues in interface EnumeratedAttribute
- 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.
toType
public static int toType(String type)
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.