See FixCRLF for an
example.
| Modifier and Type | Field and Description |
|---|---|
| private int | index
the index of the selected value in the array. |
| protected String | value
The selected value in this enumeration. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | Returns: true if the value is validthe value)String value to look upIs this value included in the enumeration? |
| public final int | |
| public static EnumeratedAttribute | Returns: Configured EAClass, extending EA, which to instantiate clazz, String The value to set on that EA value)Factory method for instantiating EAs via API in a more developer friendly way. |
| public final String | |
| public abstract String[] | Returns: an array holding all possible values of the enumeration. The order of elements must be fixed so thatindexOfValue(String)
always return the same index for the same value.This is the only method a subclass needs to implement. |
| public final int | Returns: the index of the value in the array of strings or -1 if it cannot be found.the string value to look for. value)get the index of a value in this enumeration. |
| public void | |
| public String | Returns: the string form of the value.Overrides java. |
| index | back to summary |
|---|---|
| private int index the index of the selected value in the array. | |
| value | back to summary |
|---|---|
| protected String value The selected value in this enumeration. | |
| EnumeratedAttribute | back to summary |
|---|---|
| protected EnumeratedAttribute() bean constructor | |
| containsValue | back to summary |
|---|---|
| public final boolean containsValue(String value) Is this value included in the enumeration?
| |
| getIndex | back to summary |
|---|---|
public final int getIndex()
| |
| getInstance | back to summary |
|---|---|
| public static EnumeratedAttribute getInstance(Class<? extends EnumeratedAttribute> clazz, String value) throws BuildException Factory method for instantiating EAs via API in a more developer friendly way.
| |
| getValue | back to summary |
|---|---|
public final String getValue()
| |
| getValues | back to summary |
|---|---|
| public abstract String[] getValues() This is the only method a subclass needs to implement.
| |
| indexOfValue | back to summary |
|---|---|
| public final int indexOfValue(String value) get the index of a value in this enumeration.
| |
| setValue | back to summary |
|---|---|
| public void setValue(String value) throws BuildException Invoked by
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Convert the value to its string form. | |