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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intdatestatic final intintstatic final intstringFields inherited from class org.apache.tools.ant.types.EnumeratedAttributevalue
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.tools.ant.types.EnumeratedAttributecontainsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
- 
Field Details- 
INTEGER_TYPEpublic static final int INTEGER_TYPEint- See Also:
 
- 
DATE_TYPEpublic static final int DATE_TYPEdate- See Also:
 
- 
STRING_TYPEpublic static final int STRING_TYPEstring- See Also:
 
 
- 
- 
Constructor Details- 
Typepublic Type()
 
- 
- 
Method Details- 
getValuesThis is the only method a subclass needs to implement.- Specified by:
- getValuesin class- 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.
 
- 
toTypeConvert string to index.- Parameters:
- type- the string to convert.
- Returns:
- the index.
 
 
-