org.apache.tools.ant.taskdefs.optional

Class PropertyFile.Entry.Operation

Enclosing Class:
PropertyFile.Entry

public static class PropertyFile.Entry.Operation
extends EnumeratedAttribute

Enumerated attribute with the values "+", "-", "="

Field Summary

static int
DECREMENT_OPER
-
static int
EQUALS_OPER
=
static int
INCREMENT_OPER
+

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

value

Method Summary

String[]
getValues()
.
static int
toOperation(String oper)
Convert string to index.

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

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

Field Details

DECREMENT_OPER

public static final int DECREMENT_OPER
-
Field Value:
1

EQUALS_OPER

public static final int EQUALS_OPER
=
Field Value:
2

INCREMENT_OPER

public static final int INCREMENT_OPER
+
Field Value:
0

Method Details

getValues

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

toOperation

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