Class PropertyFile.Entry.Type
java.lang.Object
org.apache.tools.ant.types.EnumeratedAttribute
org.apache.tools.ant.taskdefs.optional.PropertyFile.Entry.Type
- Enclosing class:
PropertyFile.Entry
Enumerated attribute with the values "int", "date" and "string".
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
datestatic final int
intstatic final int
stringFields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
-
Field Details
-
INTEGER_TYPE
public static final int INTEGER_TYPEint- See Also:
-
DATE_TYPE
public static final int DATE_TYPEdate- See Also:
-
STRING_TYPE
public static final int STRING_TYPEstring- See Also:
-
-
Constructor Details
-
Type
public Type()
-
-
Method Details
-
getValues
This is the only method a subclass needs to implement.- Specified by:
getValues
in classEnumeratedAttribute
- 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.
-
toType
Convert string to index.- Parameters:
type
- the string to convert.- Returns:
- the index.
-