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, setUppublic StationFormatter()
public StationFormatter(org.w3c.dom.Element el)
throws ConfigurationException
ConfigurationExceptionpublic StationFormatter(org.w3c.dom.Element el,
StationGroupTemplate sgt)
throws ConfigurationException
ConfigurationExceptionpublic static StationFormatter makeNetAndCode()
public java.lang.String getResult(Station station)
getResult in interface StationTemplateprotected java.lang.Object textTemplate(java.lang.String text)
TemplatetextTemplate in class Templateprotected java.lang.Object getTemplate(java.lang.String tag,
org.w3c.dom.Element el)
getTemplate in class Template