public class DocumentRenderingContext extends DefaultRenderingContext
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
static String |
CTX_PARAM_DOCUMENT |
Constructor and Description |
---|
DocumentRenderingContext() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getAdapter(Class<T> adapter)
Returns an object which is an instance of the given class associated with this object.
|
DocumentModel |
getDocument() |
void |
setDocument(DocumentModel doc) |
accept
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 static final String CTX_PARAM_DOCUMENT
public DocumentRenderingContext()
public <T> T getAdapter(Class<T> adapter)
Adaptable
null
if no such object can be found.getAdapter
in interface Adaptable
getAdapter
in class DefaultRenderingContext
adapter
- the adapter class to look upnull
if this object does not have an adapter for
the given classpublic void setDocument(DocumentModel doc)
public DocumentModel getDocument()
Copyright © 2018 Nuxeo. All rights reserved.