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, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public static final String CTX_PARAM_DOCUMENT
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 © 2015 Nuxeo SA. All rights reserved.