|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.archiver.util.EnumeratedAttribute
public abstract class EnumeratedAttribute
Helper class for attributes that can only take one of a fixed list of values.
See FixCRLF
for an
example.
Field Summary | |
---|---|
protected String |
value
The selected value in this enumeration. |
Constructor Summary | |
---|---|
protected |
EnumeratedAttribute()
bean constructor |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String value
Constructor Detail |
---|
protected EnumeratedAttribute()
Method Detail |
---|
public abstract String[] getValues()
public final void setValue(String value) throws ArchiverException
IntrospectionHelper
.
ArchiverException
public 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()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |