public class DefaultRenderingContext extends HashMap<String,Object> implements RenderingContext
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
DefaultRenderingContext() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(RenderingEngine engine)
Either or not this rendering context accepts the given engine.
|
<T> T |
getAdapter(Class<T> adapter)
Returns an object which is an instance of the given class
associated with this object.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public <T> T getAdapter(Class<T> adapter)
Adaptable
null
if
no such object can be found.getAdapter
in interface Adaptable
adapter
- the adapter class to look upnull
if this object does not
have an adapter for the given classpublic boolean accept(RenderingEngine engine)
RenderingContext
If the engione is not acepted it will be ignored by the rendering service when processing this context
accept
in interface RenderingContext
engine
- the engine to testCopyright © 2014 Nuxeo SA. All rights reserved.