|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Customizable
An optional adapter interface for entities whose
behaviour can be customized by clients by the application of Option
s.
The primary customizable entities are parsing Environment
s and
EvaluationEnvironment
s.
Method Summary | ||
---|---|---|
java.util.Map<Option<?>,java.lang.Object> |
clearOptions()
Clears all options. |
|
java.util.Map<Option<?>,java.lang.Object> |
getOptions()
Obtains a copy of my map of options. |
|
|
getValue(Option<T> option)
Obtains the value of the specified option's setting in the my options map. |
|
boolean |
isEnabled(Option<java.lang.Boolean> option)
Queries whether the specified boolean-valued option is enabled. |
|
|
putOptions(java.util.Map<? extends Option<T>,? extends T> options)
Adds options to apply to my behaviour. |
|
|
removeOption(Option<T> option)
Removes the specified option. |
|
|
removeOptions(java.util.Collection<Option<T>> options)
Removes the specified options. |
|
|
setOption(Option<T> option,
T value)
Add an option to apply to my behaviour. |
Method Detail |
---|
java.util.Map<Option<?>,java.lang.Object> getOptions()
<T> T getValue(Option<T> option)
option
- the option to query
boolean isEnabled(Option<java.lang.Boolean> option)
option
- an option
<T> void setOption(Option<T> option, T value)
option
- the optionvalue
- the option's value<T> void putOptions(java.util.Map<? extends Option<T>,? extends T> options)
options
- the options<T> T removeOption(Option<T> option)
option
- the option to remove
<T> java.util.Map<Option<T>,T> removeOptions(java.util.Collection<Option<T>> options)
options
- the options to remove
java.util.Map<Option<?>,java.lang.Object> clearOptions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |