public class RenderingContext
extends java.lang.Object
| Constructor and Description |
|---|
RenderingContext(java.io.File basedir,
java.lang.String document)
Constructor for RenderingContext when document is not rendered from a Doxia source.
|
RenderingContext(java.io.File basedir,
java.lang.String document,
java.lang.String parserId,
java.lang.String extension)
Constructor for RenderingContext.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAttribute(java.lang.String key)
getAttribute.
|
java.io.File |
getBasedir()
Getter for the field
basedir. |
java.lang.String |
getExtension()
Getter for the field
extension. |
java.lang.String |
getInputName()
Getter for the field
inputName. |
java.lang.String |
getOutputName()
Getter for the field
outputName. |
java.lang.String |
getParserId()
Getter for the field
parserId. |
java.lang.String |
getRelativePath()
Getter for the field
relativePath. |
void |
setAttribute(java.lang.String key,
java.lang.String value)
setAttribute.
|
public RenderingContext(java.io.File basedir,
java.lang.String document)
Constructor for RenderingContext when document is not rendered from a Doxia source.
basedir - the pseudo-source base directory.document - the pseudo-source document name: will be used to compute output name (same name with extension
replaced with .html).public RenderingContext(java.io.File basedir,
java.lang.String document,
java.lang.String parserId,
java.lang.String extension)
Constructor for RenderingContext.
basedir - the source base directory.document - the source document name.parserId - the Doxia module parser id associated to this document, may be null if document not rendered from
a Doxia source.extension - the source document filename extension.public java.io.File getBasedir()
Getter for the field basedir.
File object.public java.lang.String getInputName()
Getter for the field inputName.
String object.public java.lang.String getOutputName()
Getter for the field outputName.
String object.public java.lang.String getParserId()
Getter for the field parserId.
String object.public java.lang.String getRelativePath()
Getter for the field relativePath.
String object.public void setAttribute(java.lang.String key,
java.lang.String value)
setAttribute.
key - a String object.value - a String object.public java.lang.String getAttribute(java.lang.String key)
getAttribute.
key - a String object.String object.public java.lang.String getExtension()
Getter for the field extension.
String object.