public interface XMLTranslator
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getTranslationName()
Get the name of this translation.
|
boolean |
hasHTMLSupport()
Whether or not the translator supports an HTML format.
|
boolean |
hasLanguageSupport()
Whether or not this translation of the interface definition supports multiple languages.(Using html lang="" attribute).
|
boolean |
hasRawSupport()
Whether or not the translator supports a Raw format(not html formatted).
|
void |
toHTML(java.lang.String xml,
java.io.Writer writer)
Translate an XML string to a translated HTML-formatted string and write to the writer object.
|
java.lang.String |
toRaw(java.lang.String xml,
java.io.Writer writer)
Translate an XML string to a raw(non-html formatted) string and write to the writer object.
|
void toHTML(java.lang.String xml,
java.io.Writer writer)
throws java.lang.Exception
xml - The source XML string.writer - The object to which the translated string is written.java.lang.Exception - Thrown if any exceptions occur during translation.java.lang.String toRaw(java.lang.String xml,
java.io.Writer writer)
throws java.lang.Exception
xml - The source XML string.writer - The object to which the translated string is written.java.lang.Exception - Thrown if any exceptions occur during translation.boolean hasLanguageSupport()
boolean hasRawSupport()
boolean hasHTMLSupport()
java.lang.String getTranslationName()