public class StationFormatter extends Template implements StationTemplate
Constructor and Description |
---|
StationFormatter() |
StationFormatter(org.w3c.dom.Element el) |
StationFormatter(org.w3c.dom.Element el,
StationGroupTemplate sgt) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getResult(Station station) |
protected java.lang.Object |
getTemplate(java.lang.String tag,
org.w3c.dom.Element el)
if this class has an template for this tag, it creates it using the
passed in element and returns it.
|
static StationFormatter |
makeNetAndCode() |
protected java.lang.Object |
textTemplate(java.lang.String text)
returns an object of the template type that this class uses, and returns
the passed in text when the getResult method of that template type is
called
|
getCommonTemplate, parse, parse, setUp
public StationFormatter()
public StationFormatter(org.w3c.dom.Element el) throws ConfigurationException
ConfigurationException
public StationFormatter(org.w3c.dom.Element el, StationGroupTemplate sgt) throws ConfigurationException
ConfigurationException
public static StationFormatter makeNetAndCode()
public java.lang.String getResult(Station station)
getResult
in interface StationTemplate
protected java.lang.Object textTemplate(java.lang.String text)
Template
textTemplate
in class Template
protected java.lang.Object getTemplate(java.lang.String tag, org.w3c.dom.Element el)
getTemplate
in class Template