public abstract class EnumeratedAttribute extends Object
See FixCRLF for an
example.
| Modifier and Type | Field and Description |
|---|---|
protected String |
value
The selected value in this enumeration.
|
| Modifier | Constructor and Description |
|---|---|
protected |
EnumeratedAttribute()
bean constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsValue(String value)
Is this value included in the enumeration?
|
int |
getIndex() |
String |
getValue() |
abstract String[] |
getValues()
This is the only method a subclass needs to implement.
|
int |
indexOfValue(String value)
get the index of a value in this enumeration.
|
void |
setValue(String value)
Invoked by
IntrospectionHelper. |
String |
toString()
Convert the value to its string form.
|
protected String value
public abstract String[] getValues()
public final void setValue(String value) throws ArchiverException
IntrospectionHelper.ArchiverExceptionpublic final boolean containsValue(String value)
public final int indexOfValue(String value)
value - the string value to look for.getValues()public final String getValue()
public final int getIndex()
getValues()Copyright © 2001-2012 Codehaus. All Rights Reserved.