public class MenuTemplate extends Template implements GenericTemplate
| Modifier and Type | Class and Description |
|---|---|
class |
MenuTemplate.RelativePath |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TEMPLATE_LOC |
| Constructor and Description |
|---|
MenuTemplate(org.w3c.dom.Element el,
java.lang.String pathFrom,
java.lang.String fileDir) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getResult() |
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, setUppublic static final java.lang.String TEMPLATE_LOC
public MenuTemplate(org.w3c.dom.Element el,
java.lang.String pathFrom,
java.lang.String fileDir)
throws ConfigurationException
ConfigurationExceptionpublic java.lang.Object getTemplate(java.lang.String tag,
org.w3c.dom.Element el)
TemplategetTemplate in class Templateprotected java.lang.Object textTemplate(java.lang.String text)
textTemplate in class Templatepublic java.lang.String getResult()
getResult in interface GenericTemplate