org.eclipse.mylyn.wikitext.core.parser
Class MarkupParser

java.lang.Object
  extended by org.eclipse.mylyn.wikitext.core.parser.MarkupParser

public class MarkupParser
extends Object

A markup processor that can process lightweight markup formats such as Textile.

Since:
1.0
Author:
David Green

Constructor Summary
MarkupParser()
           
MarkupParser(MarkupLanguage markupLanaguage)
           
MarkupParser(MarkupLanguage markupLanaguage, DocumentBuilder builder)
           
 
Method Summary
 DocumentBuilder getBuilder()
          the builder to which parse results are propagated
 MarkupLanguage getMarkupLanguage()
          the markup language of the markup to process
 void parse(Reader markupContent)
           
 void parse(Reader markupContent, boolean asDocument)
           
 void parse(String markupContent)
           
 void parse(String markupContent, boolean asDocument)
           
 String parseToHtml(String markupContent)
          parse the given markup content and produce the result as an HTML document.
 void setBuilder(DocumentBuilder builder)
          set the builder to which parse results are propagated
 void setMarkupLanguage(MarkupLanguage markupLanaguage)
          set the markup language of the markup to process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkupParser

public MarkupParser()

MarkupParser

public MarkupParser(MarkupLanguage markupLanaguage,
                    DocumentBuilder builder)

MarkupParser

public MarkupParser(MarkupLanguage markupLanaguage)
Method Detail

getMarkupLanguage

public MarkupLanguage getMarkupLanguage()
the markup language of the markup to process


setMarkupLanguage

public void setMarkupLanguage(MarkupLanguage markupLanaguage)
set the markup language of the markup to process


getBuilder

public DocumentBuilder getBuilder()
the builder to which parse results are propagated


setBuilder

public void setBuilder(DocumentBuilder builder)
set the builder to which parse results are propagated


parse

public void parse(Reader markupContent)
           throws IOException
Throws:
IOException

parse

public void parse(Reader markupContent,
                  boolean asDocument)
           throws IOException
Throws:
IOException

parse

public void parse(String markupContent)

parse

public void parse(String markupContent,
                  boolean asDocument)

parseToHtml

public String parseToHtml(String markupContent)
parse the given markup content and produce the result as an HTML document.

Parameters:
markupContent - the content to parse
Returns:
the HTML document text.


Copyright © 2011 FuseSource, Corp.. All Rights Reserved.