Class View
- java.lang.Object
-
- org.nuxeo.ecm.platform.rendering.api.View
-
public class View extends Object
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>
args
protected String
name
protected Object
object
protected RenderingEngine
renderingEngine
-
Constructor Summary
Constructors Constructor Description View(RenderingEngine renderingEngine, String name)
View(RenderingEngine renderingEngine, String name, Object object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description View
arg(String key, Object value)
View
args(Map<String,Object> args)
View
forObject(Object object)
String
getName()
Object
getObject()
RenderingEngine
getRenderingEngine()
void
render(OutputStream out)
void
render(OutputStream out, String charset)
void
render(OutputStream out, Charset charset)
void
render(Writer writer)
String
toString()
-
-
-
Constructor Detail
-
View
public View(RenderingEngine renderingEngine, String name)
-
View
public View(RenderingEngine renderingEngine, String name, Object object)
-
-
Method Detail
-
getName
public String getName()
-
getObject
public Object getObject()
- Returns:
- the object
-
getRenderingEngine
public RenderingEngine getRenderingEngine()
- Returns:
- the renderingEngine
-
render
public void render(OutputStream out) throws RenderingException
- Throws:
RenderingException
-
render
public void render(OutputStream out, String charset) throws RenderingException
- Throws:
RenderingException
-
render
public void render(OutputStream out, Charset charset) throws RenderingException
- Throws:
RenderingException
-
render
public void render(Writer writer) throws RenderingException
- Throws:
RenderingException
-
-