public class HMLToSiGML
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HMLToSiGML.HMLToSiGMLException
Exception class for
HMLToSiGML. |
| Constructor and Description |
|---|
HMLToSiGML()
Constructs a new HML-to-SiGML converter.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
sigmlSignAsDoc(java.lang.String sigmlsign)
Returns a complete SiGML document text containing
the given SiGML sign element as its only sign.
|
org.w3c.dom.Element |
sigmlSignForHML(org.w3c.dom.Element hmlsel)
Transforms the given HML sign
Element to
a SiGML <hamgestural_sign> Element,
and returns the latter element. |
java.lang.String |
sigmlSignText(org.w3c.dom.Element sigmlsel)
Generates and returns the text form the given
SiGML sign DOM
Element. |
java.lang.String |
sigmlSignTextForHML(org.w3c.dom.Element hmlsel)
Transforms the given HML sign
Element to
a SiGML <hamgestural_sign> element,
and returns the text for this SiGML sign element. |
java.lang.String |
sigmlSignTextForHML(java.lang.String hmlstxt)
Transforms the given HML sign element text to
a SiGML
<hamgestural_sign> element, and returns
the text for this SiGML sign element. |
void |
validateSiGML(java.lang.String sdoctxt)
Validates the given SiGML document text, throwing an
HMLToSiGML.HMLToSiGMLException in case of failure;
the presence of whitespace in an element with an EMPTY content
model will be flagged as invalid. |
void |
validateSiGML(java.lang.String sdoctxt,
boolean emptywsok)
Validates the given SiGML document text, allowing whitespace
for EMPTY element content, and returning silently if successful or
throwing an
HMLToSiGML.HMLToSiGMLException in case
of failure. |
public HMLToSiGML()
throws HMLToSiGML.HMLToSiGMLException
HMLToSiGML.HMLToSiGMLExceptionpublic java.lang.String sigmlSignAsDoc(java.lang.String sigmlsign)
public java.lang.String sigmlSignText(org.w3c.dom.Element sigmlsel)
throws HMLToSiGML.HMLToSiGMLException
Element.HMLToSiGML.HMLToSiGMLExceptionpublic java.lang.String sigmlSignTextForHML(java.lang.String hmlstxt)
throws HMLToSiGML.HMLToSiGMLException
<hamgestural_sign> element, and returns
the text for this SiGML sign element.HMLToSiGML.HMLToSiGMLExceptionpublic java.lang.String sigmlSignTextForHML(org.w3c.dom.Element hmlsel)
throws HMLToSiGML.HMLToSiGMLException
Element to
a SiGML <hamgestural_sign> element,
and returns the text for this SiGML sign element.HMLToSiGML.HMLToSiGMLExceptionpublic org.w3c.dom.Element sigmlSignForHML(org.w3c.dom.Element hmlsel)
throws HMLToSiGML.HMLToSiGMLException
Element to
a SiGML <hamgestural_sign> Element,
and returns the latter element.HMLToSiGML.HMLToSiGMLExceptionpublic void validateSiGML(java.lang.String sdoctxt,
boolean emptywsok)
throws HMLToSiGML.HMLToSiGMLException
HMLToSiGML.HMLToSiGMLException in case
of failure.HMLToSiGML.HMLToSiGMLExceptionpublic void validateSiGML(java.lang.String sdoctxt)
throws HMLToSiGML.HMLToSiGMLException
HMLToSiGML.HMLToSiGMLException in case of failure;
the presence of whitespace in an element with an EMPTY content
model will be flagged as invalid.HMLToSiGML.HMLToSiGMLException