|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ocl.examples.pivot.AbstractBasicEnvironment
public abstract class AbstractBasicEnvironment
Partial implementation of the BasicEnvironment interface, providing
default behaviours for most features.
| Constructor Summary | |
|---|---|
protected |
AbstractBasicEnvironment(BasicEnvironment parent)
Initializes me with the specified parent environment, which should be of the same type as me. |
| Method Summary | ||
|---|---|---|
protected java.util.Map<Option<?>,java.lang.Object> |
basicGetOptions()
|
|
java.util.Map<Option<?>,java.lang.Object> |
clearOptions()
Clears all options. |
|
|
getAdapter(java.lang.Class<T> adapterType)
The abstract environment implementation is adaptable. |
|
java.util.Map<Option<?>,java.lang.Object> |
getOptions()
Obtains a copy of my map of options. |
|
BasicEnvironment |
getParent()
|
|
|
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. |
|
protected void |
setParent(BasicEnvironment parent)
Assigns me a parent environment after construction. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractBasicEnvironment(BasicEnvironment parent)
parent - an environment of the same type as me (or null)| Method Detail |
|---|
public <T> T getAdapter(java.lang.Class<T> adapterType)
ProblemHandler interface.
Subclasses may override or extend this implementation.
getAdapter in interface AdaptableT - the requested adapter interfaceadapterType - the requested adapter interface
null
if this environment does not adapt to itpublic BasicEnvironment getParent()
protected void setParent(BasicEnvironment parent)
null if I previously had one.
parent - my new parentprotected java.util.Map<Option<?>,java.lang.Object> basicGetOptions()
public java.util.Map<Option<?>,java.lang.Object> getOptions()
Customizable
getOptions in interface Customizable
public <T> void setOption(Option<T> option,
T value)
Customizable
setOption in interface Customizableoption - the optionvalue - the option's valuepublic <T> void putOptions(java.util.Map<? extends Option<T>,? extends T> options)
Customizable
putOptions in interface Customizableoptions - the optionspublic <T> T removeOption(Option<T> option)
Customizable
removeOption in interface Customizableoption - the option to remove
public <T> java.util.Map<Option<T>,T> removeOptions(java.util.Collection<Option<T>> options)
Customizable
removeOptions in interface Customizableoptions - the options to remove
public java.util.Map<Option<?>,java.lang.Object> clearOptions()
Customizable
clearOptions in interface Customizablepublic boolean isEnabled(Option<java.lang.Boolean> option)
Customizable
isEnabled in interface Customizableoption - an option
public <T> T getValue(Option<T> option)
Customizable
getValue in interface Customizableoption - the option to query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||