java.lang.Object
org.devtools.wiki.translators.PropertyListTranslator
- All Implemented Interfaces:
- org.devtools.webtrans.Translator
- public class PropertyListTranslator
- extends java.lang.Object
- implements org.devtools.webtrans.Translator
Bolds all of the '''-enclosed strings in the document, Emphasizes
all of the ''-enclosed strings in the document, and both bolds and
emphasizes all of the '''''-enclosed strings in the document.
This translator will not work with any other translators that
process single quotes. To get the correct behavior, implement a
translator which combines all single-quote processing into one.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
D
private org.devtools.util.debug.Debugger D
PropertyListTranslator
public PropertyListTranslator()
- Constructs a quote translator.
init
public void init(org.devtools.webtrans.TranslatorServices srv)
- A constructor-like initialization method. The
TranslatorManager will call this method exactly once, before
any calls to translate(). The Translator may choose to do
nothing during this method, or it may choose to save the
reference to the provided TranslatorServices, which provide
getters for commonly needed information such as the site's
Persister, its base URL, the location of Special Pages such as
the front page, search page, edit page, putter page,
etc.
This method replaces a parametric constructor, so that
Translators can be created using the getInstance() method on
class Class, which requires a no-arg constructor.
- Specified by:
init in interface org.devtools.webtrans.Translator
translate
public void translate(org.devtools.webtrans.StringChanges c,
org.devtools.webtrans.WebContent content,
org.devtools.webtrans.TranslatorLog log,
java.util.Properties query)
- Scans the document for property-value pairs of the form |property|=|value|\n.
- Specified by:
translate in interface org.devtools.webtrans.Translator
getName
public java.lang.String getName()
- Returns the name of the translator. This should be something
descriptive and human-readable that uniquely indicates what the
translator does. This name will be included in error logging
if this translator has a conflict with another one, throws an
exception, etc.
- Specified by:
getName in interface org.devtools.webtrans.Translator
getUsage
public java.lang.String getUsage()
- Returns some HTML representing a description of what text this
translator processes. This will be shown to the user so that
they can determine how to write their documents. (If this
translator has no usage or if you wish it to be invisible to
the user, return null. This Translator will not be included in
the usage list.)
- Specified by:
getUsage in interface org.devtools.webtrans.Translator