|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.web.forms.XSLTRenderingEngine
public class XSLTRenderingEngine
A rendering engine which uses xsl templates to render renditions of form instance data.
| Nested Class Summary | |
|---|---|
static class |
XSLTRenderingEngine.ProcessorMethodInvoker
|
| Nested classes/interfaces inherited from interface org.alfresco.web.forms.RenderingEngine |
|---|
RenderingEngine.RenderingException, RenderingEngine.TemplateNotFoundException, RenderingEngine.TemplateProcessorMethod, RenderingEngine.TemplateResourceResolver |
| Field Summary |
|---|
| Fields inherited from interface org.alfresco.web.forms.RenderingEngine |
|---|
ROOT_NAMESPACE |
| Constructor Summary | |
|---|---|
XSLTRenderingEngine()
|
|
| Method Summary | |
|---|---|
protected void |
addParameters(java.util.Map model,
org.w3c.dom.Document xslTemplate)
Adds the specified parameters to the xsl template as variables within the alfresco namespace. |
protected java.util.List |
addScripts(java.util.Map model,
org.w3c.dom.Document xslTemplate)
Adds a script element to the xsl which makes static methods on this object available to the xsl tempalte. |
java.lang.String |
getDefaultTemplateFileExtension()
Returns the default file extension for rendering engine templates for this rendering engine. |
java.lang.String |
getName()
Returns the rendering engines name. |
protected javax.xml.transform.Source |
getXMLSource(java.util.Map model)
|
void |
render(java.util.Map model,
RenderingEngineTemplate ret,
java.io.OutputStream out)
Renders the xml data in to a presentation format. |
void |
render(java.util.Map model,
RenderingEngineTemplate ret,
javax.xml.transform.Result result)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XSLTRenderingEngine()
| Method Detail |
|---|
public java.lang.String getName()
RenderingEngine
getName in interface RenderingEnginepublic java.lang.String getDefaultTemplateFileExtension()
RenderingEngine
getDefaultTemplateFileExtension in interface RenderingEngine
protected java.util.List addScripts(java.util.Map model,
org.w3c.dom.Document xslTemplate)
xslTemplate - the xsl template
protected void addParameters(java.util.Map model,
org.w3c.dom.Document xslTemplate)
model - the variables to place within the xsl templatexslTemplate - the xsl templateprotected javax.xml.transform.Source getXMLSource(java.util.Map model)
public void render(java.util.Map model,
RenderingEngineTemplate ret,
java.io.OutputStream out)
throws java.io.IOException,
RenderingEngine.RenderingException,
org.xml.sax.SAXException
RenderingEngine
render in interface RenderingEnginemodel - The modelret - the rendering engine templateout - The output stream to write to
java.io.IOException
RenderingEngine.RenderingException
org.xml.sax.SAXException
public void render(java.util.Map model,
RenderingEngineTemplate ret,
javax.xml.transform.Result result)
throws java.io.IOException,
RenderingEngine.RenderingException,
org.xml.sax.SAXException
java.io.IOException
RenderingEngine.RenderingException
org.xml.sax.SAXException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||