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
 
 public static class PropertyFile.Entry.Type extends EnumeratedAttribute Enumerated attribute with the values "int", "date" and "string".
- 
- 
Field SummaryFields Modifier and Type Field Description static intDATE_TYPEdatestatic intINTEGER_TYPEintstatic intSTRING_TYPEstring- 
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttributevalue
 
- 
 - 
Constructor SummaryConstructors Constructor Description Type()
 - 
Method Summary- 
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttributecontainsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
 
- 
 
- 
- 
- 
Field Detail- 
INTEGER_TYPEpublic static final int INTEGER_TYPE int- See Also:
- Constant Field Values
 
 - 
DATE_TYPEpublic static final int DATE_TYPE date- See Also:
- Constant Field Values
 
 - 
STRING_TYPEpublic static final int STRING_TYPE string- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getValuespublic java.lang.String[] getValues() This 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.
 
 - 
toTypepublic static int toType(java.lang.String type) Convert string to index.- Parameters:
- type- the string to convert.
- Returns:
- the index.
 
 
- 
 
-