public abstract class AbstractOption extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
protected |
AbstractOption(String aStrRep)
Creates a new
AbstractOption instance. |
Modifier and Type | Method and Description |
---|---|
AbstractOption |
decode(String aStrRep)
Returns the option specified by a string representation.
|
protected abstract Map |
getStrToOpt()
Returns the map from string representations to options.
|
protected Object |
readResolve()
Ensures that we don't get multiple instances of one AbstractOption
during deserialization.
|
String |
toString() |
protected AbstractOption(String aStrRep)
AbstractOption
instance.aStrRep
- the string representationprotected abstract Map getStrToOpt()
Map
from strings to options.public AbstractOption decode(String aStrRep)
aStrRep
- the String representation to parseAbstractOption
value represented by
aStrRep, or null if none exists.protected Object readResolve() throws ObjectStreamException
ObjectStreamException
- if a deserialization error occurs