public abstract class MarkupEngine extends java.lang.Object implements ParserEngine
contents map.
This specific engine does nothing, meaning that the body is rendered as raw contents.
| Constructor and Description |
|---|
MarkupEngine() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
parse(org.apache.commons.configuration.Configuration config,
java.io.File file,
java.lang.String contentPath) |
java.util.Map<java.lang.String,java.lang.Object> |
parse(JBakeConfiguration config,
java.io.File file)
Parse given file to extract as much infos as possible
|
void |
processBody(ParserContext context)
Processes the body of the document.
|
void |
processHeader(ParserContext context)
Processes the document header.
|
boolean |
validate(ParserContext context)
Tests if this markup engine can process the document.
|
public boolean validate(ParserContext context)
context - the parser contextpublic void processHeader(ParserContext context)
contents map.context - the parser contextpublic void processBody(ParserContext context)
ParserContext.setBody(String) method.context - the parser contextpublic java.util.Map<java.lang.String,java.lang.Object> parse(org.apache.commons.configuration.Configuration config,
java.io.File file,
java.lang.String contentPath)
parse in interface ParserEngineconfig - The project configurationfile - The file to be parsedcontentPath - unknownpublic java.util.Map<java.lang.String,java.lang.Object> parse(JBakeConfiguration config, java.io.File file)
parse in interface ParserEnginefile - file to processconfig - The project configuration