sigmlanim.sigmlstream
Class HNSToHamGesturalConverter

java.lang.Object
  extended by sigmlanim.sigmlstream.HNSToHamGesturalConverter

public class HNSToHamGesturalConverter
extends java.lang.Object

A translator that generates the gestural SiGML element (<hamgestural_sign>) for any given HNS SiGML element (<hns_sign>) -- accessed via the singleton factory method getHHConverter().


Method Summary
 org.w3c.dom.Element convertToElement(org.w3c.dom.Element hsel)
          Converts the given HNS sign SiGML element, returning the corresponding gestural SiGML DOM element.
 java.lang.String convertToText(org.w3c.dom.Element hsel)
          Converts the given HNS sign SiGML element, returning the text for the corresponding gestural SiGML element.
 java.lang.String elText(org.w3c.dom.Element el)
          Returns the text for the given XML element text.
static HNSToHamGesturalConverter getHHConverter()
          Returns a gestural-to-HNS SiGML element converter (singleton factory method).
 java.lang.String gSiGMLSignText(org.w3c.dom.Element gsel, java.lang.String xgloss)
          Returns the text form for the given Gestural SiGML sign element, or returns the text of an empty Gestural SiGML sign, using the given gloss, if the given element is null.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHHConverter

public static HNSToHamGesturalConverter getHHConverter()
Returns a gestural-to-HNS SiGML element converter (singleton factory method).


convertToElement

public org.w3c.dom.Element convertToElement(org.w3c.dom.Element hsel)
Converts the given HNS sign SiGML element, returning the corresponding gestural SiGML DOM element.


convertToText

public java.lang.String convertToText(org.w3c.dom.Element hsel)
Converts the given HNS sign SiGML element, returning the text for the corresponding gestural SiGML element.


gSiGMLSignText

public java.lang.String gSiGMLSignText(org.w3c.dom.Element gsel,
                                       java.lang.String xgloss)
Returns the text form for the given Gestural SiGML sign element, or returns the text of an empty Gestural SiGML sign, using the given gloss, if the given element is null.


elText

public java.lang.String elText(org.w3c.dom.Element el)
Returns the text for the given XML element text.