org.apache.tools.ant.taskdefs.optional

Class PropertyFile.Entry.Type

Enclosing Class:
PropertyFile.Entry

public static class PropertyFile.Entry.Type
extends EnumeratedAttribute

Enumerated attribute with the values "int", "date" and "string".

Field Summary

static int
DATE_TYPE
date
static int
INTEGER_TYPE
int
static int
STRING_TYPE
string

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

value

Method Summary

String[]
getValues()
static int
toType(String type)
Convert string to index.

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

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

Field Details

DATE_TYPE

public static final int DATE_TYPE
date
Field Value:
1

INTEGER_TYPE

public static final int INTEGER_TYPE
int
Field Value:
0

STRING_TYPE

public static final int STRING_TYPE
string
Field Value:
2

Method Details

getValues

public String[] getValues()
Overrides:
getValues in interface EnumeratedAttribute

toType

public static int toType(String type)
Convert string to index.
Parameters:
type - the string to convert.
Returns:
the index.