|
||||||||||
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 | ||
---|---|---|
Map<Option<?>,Object> |
clearOptions()
Clears all options. |
|
Map<Option<?>,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<Boolean> option)
Queries whether the specified boolean-valued option is enabled. |
|
|
putOptions(Map<? extends Option<T>,? extends T> options)
Adds options to apply to my behaviour. |
|
|
removeOption(Option<T> option)
Removes the specified option. |
|
|
removeOptions(Collection<Option<T>> options)
Removes the specified options. |
|
|
setOption(Option<T> option,
T value)
Add an option to apply to my behaviour. |
Method Detail |
---|
Map<Option<?>,Object> getOptions()
<T> T getValue(Option<T> option)
option
- the option to query
boolean isEnabled(Option<Boolean> option)
option
- an option
<T> void setOption(Option<T> option, T value)
option
- the optionvalue
- the option's value<T> void putOptions(Map<? extends Option<T>,? extends T> options)
options
- the options<T> T removeOption(Option<T> option)
option
- the option to remove
<T> Map<Option<T>,T> removeOptions(Collection<Option<T>> options)
options
- the options to remove
Map<Option<?>,Object> clearOptions()
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |