Home
Categories
Dictionary
Download
Project Details
Changes Log
What Links Here
How To
Syntax
FAQ
License

Directory writer



This article explains how to creata a custom DirectoryWriter for a Plugin.

Overview

The DirectoryWriter is the class which is responsible for effectively writing the content of the wiki The default output is a html site. However, it is also possible to generate the wiki in the following formats: You can also create your own format using the plugins system and setting the PluginFactory.newDirectoryWriter() method.

Directory writer API

The main useful methods of the writer are:
public interface DirectoryWriter
Method Summary
Modifier and Type Method and Description
void getModel()
Get the articles model
void setModel(File dir, ArticlesModel model)
Set the articles model, and the directory to write the wiki
void writeContent()
Write the wiki content

Directory writer features

The writer has the concept of features which allow to customize which elements will be writtent and how. The two methods which customize these features are:
public interface DirectoryWriter
Method Summary
Modifier and Type Method and Description
void getFeature(String name)
Return a property value for the writer. Return false by default.
void setFeature(String name, boolean value)
Set a property value for the writer. Do nothing by default



The list of features which can be set are:

See also


Categories: plugins

docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.