public class NetworkFormatter extends Template implements NetworkTemplate
Constructor and Description |
---|
NetworkFormatter(org.w3c.dom.Element el) |
NetworkFormatter(org.w3c.dom.Element el,
NetworkGroupTemplate ngt) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getResult(NetworkAttr network)
Method getResult
|
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.
|
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 NetworkFormatter(org.w3c.dom.Element el) throws ConfigurationException
ConfigurationException
public NetworkFormatter(org.w3c.dom.Element el, NetworkGroupTemplate ngt) throws ConfigurationException
ConfigurationException
public java.lang.String getResult(NetworkAttr network)
getResult
in interface NetworkTemplate
network
- a NetworkAccessprotected java.lang.Object textTemplate(java.lang.String text)
textTemplate
in class Template
protected java.lang.Object getTemplate(java.lang.String tag, org.w3c.dom.Element el)
getTemplate
in class Template