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) |
acceptclear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic static final String CTX_PARAM_DOCUMENT
public <T> T getAdapter(Class<T> adapter)
Adaptablenull if
no such object can be found.getAdapter in interface AdaptablegetAdapter in class DefaultRenderingContextadapter - 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 © 2012 Nuxeo SA. All Rights Reserved.