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
static int
INTEGER_TYPE
static int
STRING_TYPE

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

value

Method Summary

String[]
getValues()
This is the only method a subclass needs to implement.
static int
toType(String type)

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

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

Field Details

DATE_TYPE

public static final int DATE_TYPE
Field Value:
1

INTEGER_TYPE

public static final int INTEGER_TYPE
Field Value:
0

STRING_TYPE

public static final int STRING_TYPE
Field Value:
2

Method Details

getValues

public String[] getValues()
This is the only method a subclass needs to implement.
Overrides:
getValues in interface EnumeratedAttribute
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

public static int toType(String type)

Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.