public interface DirectoryWriter
Modifier and Type | Method and Description |
---|---|
default boolean |
allowIdenticalTitleIDs()
Return true if the parser accept identical title IDs.
|
default boolean |
forceAbsoluteLinksFeature()
Return true if the articles Table of contents must be generated.
|
default boolean |
getFeature(java.lang.String name)
Return a property value for the writer.
|
default boolean |
getFeature(java.lang.String name,
boolean defaultValue)
Return a property value for the writer.
|
ArticlesModel |
getModel()
Return the model.
|
default boolean |
isSupportingThemes()
Return true if the writer support themes.
|
default boolean |
isWritingComments()
Return true if comments are written.
|
default boolean |
isXHTMLCompliant()
Return true if the writer will write an XHTML compliant result.
|
void |
setErrorHandler(org.docgene.parser.XMLErrorHandler errorHandler)
Set the error handler which will be used to create and store errors or informations during the writing.
|
default void |
setFeature(java.lang.String name,
boolean value)
Set a property value for the writer.
|
void |
setModel(java.io.File dir,
ArticlesModel model)
Set the model.
|
default boolean |
setSupportThemes()
Return true if the writer support themes.
|
default void |
setupFeatures()
Setup the writer configuration.
|
default boolean |
writeAnyScriptsFeature()
Return true if the writer can write scripts.
|
default boolean |
writeArticlesHeaderFrame()
Return true if the articles header frame must be written.
|
default boolean |
writeArticlesTOCFeature()
Return true if the articles Table of contents must be generated.
|
void |
writeContent()
Write the wiki content.
|
default boolean |
writeFallback()
Return true if allowing to write the fallback articles.
|
default boolean |
writeHTMLArticlesFrame()
Return true if the html articles can be enclosed in frames.
|
default boolean |
writeResourcesFeature()
Return true if the writer can write resources files.
|
default boolean |
writeScriptsFeature()
Return true if the writer can write scripts.
|
default boolean |
writeSeeAlsoFeature()
Return true if the writer can write seeAlso elements.
|
default boolean |
writeSubDirectories()
Return true if allowing to write articles, resources and images in sub-directories.
|
void setErrorHandler(org.docgene.parser.XMLErrorHandler errorHandler)
errorHandler
- the error handlerdefault void setFeature(java.lang.String name, boolean value)
name
- the property namevalue
- the property valuedefault boolean getFeature(java.lang.String name)
name
- name the property namedefault boolean getFeature(java.lang.String name, boolean defaultValue)
name
- name the property namedefaultValue
- the property default valuedefault boolean writeScriptsFeature()
default boolean writeAnyScriptsFeature()
default boolean writeResourcesFeature()
default boolean writeSeeAlsoFeature()
default boolean writeArticlesTOCFeature()
default boolean forceAbsoluteLinksFeature()
default boolean setSupportThemes()
default boolean allowIdenticalTitleIDs()
default boolean writeSubDirectories()
default boolean writeFallback()
default boolean writeArticlesHeaderFrame()
default boolean writeHTMLArticlesFrame()
default boolean isWritingComments()
default boolean isXHTMLCompliant()
default boolean isSupportingThemes()
default void setupFeatures()
void setModel(java.io.File dir, ArticlesModel model)
dir
- the base directorymodel
- the articles modelArticlesModel getModel()
void writeContent() throws org.docgene.writer.DocJWriterException
DocJWriterException
- thrown if an exception occur when trying to write the contentCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence