public abstract class Template
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
templates |
Constructor and Description |
---|
Template() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
getCommonTemplate(java.lang.String tag,
org.w3c.dom.Element el)
actually return Templates for common tags.
|
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 void |
parse(org.w3c.dom.Element el) |
protected void |
parse(org.w3c.dom.Element el,
boolean trim) |
void |
setUp() |
protected abstract 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
|
protected abstract java.lang.Object textTemplate(java.lang.String text)
protected java.lang.Object getTemplate(java.lang.String tag, org.w3c.dom.Element el) throws ConfigurationException
ConfigurationException
protected java.lang.Object getCommonTemplate(java.lang.String tag, org.w3c.dom.Element el)
protected void parse(org.w3c.dom.Element el) throws ConfigurationException
ConfigurationException
protected void parse(org.w3c.dom.Element el, boolean trim) throws ConfigurationException
trim
- Removes all whitespace from TEXT_NODEs.ConfigurationException
public void setUp()