public class DocumentRenderingContext extends Object
Constructor and Description |
---|
DocumentRenderingContext(File basedir,
String document,
String generator)
Constructor for rendering context when document is not rendered from a Doxia markup source.
|
DocumentRenderingContext(File basedir,
String basedirRelativePath,
String document,
String parserId,
String extension,
boolean editable) |
DocumentRenderingContext(File basedir,
String basedirRelativePath,
String document,
String parserId,
String extension,
boolean editable,
String generator)
Constructor for document rendering context.
|
Modifier and Type | Method and Description |
---|---|
String |
getAttribute(String key)
getAttribute.
|
File |
getBasedir()
Getter for the field
basedir . |
String |
getBasedirRelativePath()
Get the relative path of basedir (when a Doxia source)
|
String |
getDoxiaSourcePath()
Get the relative path to Doxia source from build root.
|
String |
getDoxiaSourcePath(String base)
Get url of the Doxia source calculate from given base url.
|
String |
getExtension()
Get the source document filename extension (when a Doxia source)
|
String |
getGenerator()
What is the generator (if any)?
|
String |
getInputName()
Getter for the field
inputName . |
String |
getOutputName()
Get html output name, relative to site root.
|
String |
getParserId()
Get the parserId when document comes from a Doxia source.
|
String |
getRelativePath()
Get the relative path to site root.
|
boolean |
isDoxiaSource()
Is the document rendered from a Doxia source?
|
boolean |
isEditable()
Is the source document editable?
|
void |
setAttribute(String key,
String value)
setAttribute.
|
public DocumentRenderingContext(File basedir, String document, String generator)
Constructor for rendering context when document is not rendered from a Doxia markup 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
).generator
- the generator (in general a reporting goal: groupId:artifactId:version:goal
)public DocumentRenderingContext(File basedir, String basedirRelativePath, String document, String parserId, String extension, boolean editable)
public DocumentRenderingContext(File basedir, String basedirRelativePath, String document, String parserId, String extension, boolean editable, String generator)
Constructor for document rendering context.
basedir
- the source base directory (not null, pseudo value when not a Doxia source).basedirRelativePath
- the relative path from root (null if not Doxia source)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, may be null if document not rendered from
a Doxia source.editable
- is the document editable as source, i.e. not generated?generator
- the generator (in general a reporting goal: groupId:artifactId:version:goal
)public String getOutputName()
PathTool.getRelativePath(String)
public String getParserId()
null
if not froma DOxia source.public String getRelativePath()
public String getExtension()
null
if not a Doxia sourcepublic boolean isEditable()
true
if comes from an editable Doxia source (not generated one).public boolean isDoxiaSource()
true
if comes from a Doxia source.public String getGenerator()
null
if no known generatorpublic String getBasedirRelativePath()
null
if not a Doxia sourcepublic String getDoxiaSourcePath()
null
if not a Doxia sourceCopyright © 2005–2023 The Apache Software Foundation. All rights reserved.