public class HNSManualConverter
extends java.lang.Object
<hamnosys_manual>
HNS-SiGML element.
This element contains a sequence of HNS token name elements.
The conversion process produces the element text.
The primary interface is the
convert(String, String, StringBuilder)
method, which
appends the generated element text to a StringBuilder
.Constructor and Description |
---|
HNSManualConverter()
Constructs a new manual HNS converter, allocating its
character-to-token-name map.
|
Modifier and Type | Method and Description |
---|---|
void |
convert(java.lang.String hnsman,
java.lang.String indent,
java.lang.StringBuilder hnsbuf)
Converts the given manual HNS string to a
<hamnosys_manual> element and appends the text of
that element to the given StringBuilder with the
given indentation at the start of each line. |
java.lang.String |
manElement(java.lang.String hnsman,
java.lang.String indent)
Converts the given manual HNS string to a
<hamnosys_manual> element and returns a string
containing the text of that element, with the given indentation
at the start of each line. |
public HNSManualConverter()
public void convert(java.lang.String hnsman, java.lang.String indent, java.lang.StringBuilder hnsbuf)
<hamnosys_manual>
element and appends the text of
that element to the given StringBuilder
with the
given indentation at the start of each line.
If the given manual HNS string is null
or empty an
empty <hamnosys_manual>
is still generated.public java.lang.String manElement(java.lang.String hnsman, java.lang.String indent)
<hamnosys_manual>
element and returns a string
containing the text of that element, with the given indentation
at the start of each line.