public class TemplateParser extends Object
TemplateParser.ITemplateHandler
.Modifier and Type | Class and Description |
---|---|
static class |
TemplateParser.EtymologyTemplateHandler
Implementation of an
TemplateParser.ITemplateHandler for parsing etymology
information in Wiktionary. |
static interface |
TemplateParser.ITemplateHandler
Interface that is expected by the
TemplateParser . |
static class |
TemplateParser.Template
A template is a reusable pattern that can be added to any wiki page.
|
Constructor and Description |
---|
TemplateParser() |
Modifier and Type | Method and Description |
---|---|
static String |
parse(String wikiText,
TemplateParser.ITemplateHandler handler)
Parse the given wiki text and substitute each template in the text
using the specified template handler.
|
static TemplateParser.Template |
parseTemplate(String templateText)
Creates a
TemplateParser.Template from the given text. |
public static String parse(String wikiText, TemplateParser.ITemplateHandler handler)
public static TemplateParser.Template parseTemplate(String templateText)
TemplateParser.Template
from the given text. That is, the
template's name and parameters are extracted from the text and
stored in the template instance.Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.