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, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public DefaultRenderingContext()
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 © 2018 Nuxeo. All rights reserved.