Class SiteRenderingContext
- Author:
- Brett Porter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModuleDirectory(File moduleBasedir, String moduleParserId) Add a extra-module source directory: used for Maven 1.x${basedir}/xdocslayout, which containsxdocandfml.voidaddSiteDirectory(File siteDirectory) Add a site directory, expected to have a Doxia Site layout, ie one directory per Doxia parser module containing files with parser extension.voidaddSiteLocales(List<Locale> locales) Adds passed locales to the list of site locales.org.apache.maven.doxia.site.decoration.DecorationModelGetter for the fielddecoration.Getter for the fielddefaultWindowTitle.Getter for the fieldinputEncoding.Getter for the fieldlocale.Getter for the fieldmoduleExcludes.List<org.apache.maven.doxia.siterenderer.ExtraDoxiaModuleReference>Getter for the fieldmodules.Getter for the fieldoutputEncoding.Directory where to save content after Velocity processing (*.vm), but before parsing it with Doxia.If you want to specify a specific publish date instead of the current date.Root directory, to calculate relative path to every site directories.Getter for the fieldsiteDirectories.Getter for the fieldsiteLocales- a list of locales available for this site context.org.apache.maven.artifact.ArtifactgetSkin()Getter for the fieldskin.org.apache.maven.doxia.site.skin.SkinModelGetter for the fieldskinModel.Getter for the fieldtemplateClassLoader.Getter for the fieldtemplateName.Getter for the fieldtemplateProperties.booleanisUsingDefaultTemplate.booleanIf input documents should be validated before parsing.voidsetDecoration(org.apache.maven.doxia.site.decoration.DecorationModel decoration) Setter for the fielddecoration.voidsetDefaultWindowTitle(String defaultWindowTitle) Setter for the fielddefaultWindowTitle.voidsetInputEncoding(String inputEncoding) Setter for the fieldinputEncoding.voidSetter for the fieldlocale.voidsetModuleExcludes(Map<String, String> moduleExcludes) Setter for the fieldmoduleExcludes.voidsetOutputEncoding(String outputEncoding) Setter for the fieldoutputEncoding.voidsetProcessedContentOutput(File processedContentOutput) Where to (eventually) save content after Velocity processing (*.vm), but before parsing it with Doxia?voidsetPublishDate(Date publishDate) Specify a specific publish date instead of the current date.voidsetRootDirectory(File rootDirectory) Set the root directory.voidsetSkin(org.apache.maven.artifact.Artifact skin) Setter for the fieldskinJarFile.voidsetSkinModel(org.apache.maven.doxia.site.skin.SkinModel skinModel) Setter for the fieldskinModel.voidsetTemplateClassLoader(ClassLoader templateClassLoader) Setter for the fieldtemplateClassLoader.voidsetTemplateName(String templateName) Setter for the fieldtemplateName.voidsetTemplateProperties(Map<String, ?> templateProperties) Setter for the fieldtemplateProperties.voidsetUsingDefaultTemplate(boolean usingDefaultTemplate) Setter for the fieldusingDefaultTemplate.voidsetValidate(boolean validate) Switch on/off validation.
-
Constructor Details
-
SiteRenderingContext
public SiteRenderingContext()
-
-
Method Details
-
isValidate
public boolean isValidate()If input documents should be validated before parsing. By default no validation is performed.- Returns:
- true if validation is switched on.
- Since:
- 1.1.3
-
setValidate
public void setValidate(boolean validate) Switch on/off validation.- Parameters:
validate- true to switch on validation.- Since:
- 1.1.3
-
getTemplateName
Getter for the field
templateName.- Returns:
- a
Stringobject.
-
getTemplateClassLoader
Getter for the field
templateClassLoader.- Returns:
- a
ClassLoaderobject.
-
setTemplateClassLoader
Setter for the field
templateClassLoader.- Parameters:
templateClassLoader- aClassLoaderobject.
-
getTemplateProperties
Getter for the field
templateProperties.- Returns:
- a
Mapobject.
-
setTemplateProperties
Setter for the field
templateProperties.- Parameters:
templateProperties- aMapobject.
-
getLocale
Getter for the field
locale.- Returns:
- a
Localeobject.
-
setLocale
Setter for the field
locale.- Parameters:
locale- aLocaleobject.
-
getSiteLocales
Getter for the field
siteLocales- a list of locales available for this site context. -
addSiteLocales
Adds passed locales to the list of site locales.
- Parameters:
locales- List ofLocaleobjects to add to the site locales list.
-
getDecoration
public org.apache.maven.doxia.site.decoration.DecorationModel getDecoration()Getter for the field
decoration.- Returns:
- a
DecorationModelobject.
-
setDecoration
public void setDecoration(org.apache.maven.doxia.site.decoration.DecorationModel decoration) Setter for the field
decoration.- Parameters:
decoration- aDecorationModelobject.
-
setDefaultWindowTitle
Setter for the field
defaultWindowTitle.- Parameters:
defaultWindowTitle- aStringobject.
-
getDefaultWindowTitle
Getter for the field
defaultWindowTitle.- Returns:
- a
Stringobject.
-
getSkin
public org.apache.maven.artifact.Artifact getSkin()Getter for the field
skin.- Returns:
- a
Artifactobject.
-
setSkin
public void setSkin(org.apache.maven.artifact.Artifact skin) Setter for the field
skinJarFile.- Parameters:
skin- anArtifactobject.
-
getSkinModel
public org.apache.maven.doxia.site.skin.SkinModel getSkinModel()Getter for the field
skinModel.- Returns:
- a
SkinModelobject.
-
setSkinModel
public void setSkinModel(org.apache.maven.doxia.site.skin.SkinModel skinModel) Setter for the field
skinModel.- Parameters:
skinModel- aSkinModelobject.
-
setTemplateName
Setter for the field
templateName.- Parameters:
templateName- aStringobject.
-
setUsingDefaultTemplate
public void setUsingDefaultTemplate(boolean usingDefaultTemplate) Setter for the field
usingDefaultTemplate.- Parameters:
usingDefaultTemplate- a boolean.
-
isUsingDefaultTemplate
public boolean isUsingDefaultTemplate()isUsingDefaultTemplate.
- Returns:
- a boolean.
-
addSiteDirectory
Add a site directory, expected to have a Doxia Site layout, ie one directory per Doxia parser module containing files with parser extension. Typical values aresrc/siteortarget/generated-site.- Parameters:
siteDirectory- aFileobject.
-
addModuleDirectory
Add a extra-module source directory: used for Maven 1.x${basedir}/xdocslayout, which containsxdocandfml.- Parameters:
moduleBasedir- The base directory for module's source files.moduleParserId- module's Doxia parser id.
-
getSiteDirectories
Getter for the field
siteDirectories.- Returns:
- List of site directories files.
-
getModules
Getter for the field
modules.- Returns:
- a
Listobject.
-
getModuleExcludes
Getter for the field
moduleExcludes.- Returns:
- a map defining exclude patterns (comma separated) by parser id.
-
setModuleExcludes
Setter for the field
moduleExcludes.- Parameters:
moduleExcludes- aMapobject.
-
getInputEncoding
Getter for the field
inputEncoding.- Returns:
- a
Stringobject.
-
setInputEncoding
Setter for the field
inputEncoding.- Parameters:
inputEncoding- aStringobject.
-
getOutputEncoding
Getter for the field
outputEncoding.- Returns:
- a
Stringobject.
-
setOutputEncoding
Setter for the field
outputEncoding.- Parameters:
outputEncoding- aStringobject.
-
getPublishDate
If you want to specify a specific publish date instead of the current date.
- Returns:
- the publish date, can be
null
-
setPublishDate
Specify a specific publish date instead of the current date.
- Parameters:
publishDate- the publish date
-
getProcessedContentOutput
Directory where to save content after Velocity processing (*.vm), but before parsing it with Doxia.- Returns:
- not null if the documents are to be saved
- Since:
- 1.7
-
setProcessedContentOutput
Where to (eventually) save content after Velocity processing (*.vm), but before parsing it with Doxia?- Parameters:
processedContentOutput- not null if the documents are to be saved- Since:
- 1.7
-
getRootDirectory
Root directory, to calculate relative path to every site directories. Corresponds to thepom.xmldirectory for Maven build.- Returns:
- the root directory
- Since:
- 1.8
-
setRootDirectory
Set the root directory.- Parameters:
rootDirectory-- Since:
- 1.8
-