|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.turbine.services.template.TurbineTemplate
This is a simple static accessor to common TemplateService tasks such as getting a Screen that is associated with a screen template.
Constructor Summary | |
TurbineTemplate()
|
Method Summary | |
static java.lang.String |
getDefaultExtension()
Get the default extension given in the properties file. |
static java.lang.String |
getDefaultLayoutName(RunData data)
|
static java.lang.String |
getDefaultLayoutTemplate()
Get the default layout template given in the properties file. |
static java.lang.String |
getDefaultNavigation()
Get the default Navigation given in the properties file. |
static java.lang.String |
getDefaultPageName(RunData data)
|
static java.lang.String |
getDefaultScreen()
Get the Screen template given in the properties file. |
static java.lang.String |
getLayoutTemplateName(java.lang.String name)
Locate and return the name of a layout template. |
static java.lang.String |
getNavigationName(java.lang.String name)
Locate and return the name of a Navigation module. |
static java.lang.String |
getScreenName(java.lang.String name)
Locate and return the name of a Screen module. |
static java.lang.String |
getScreenTemplateName(java.lang.String key)
Locate and return the name of a screen template. |
protected static TemplateService |
getService()
Utility method for accessing the service implementation |
static void |
registerTemplateEngineService(TemplateEngineService service)
|
static boolean |
templateExists(java.lang.String template,
java.lang.String[] templatePaths)
|
static java.lang.String[] |
translateTemplatePaths(java.lang.String[] templatePaths)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TurbineTemplate()
Method Detail |
protected static TemplateService getService()
public static final java.lang.String getScreenTemplateName(java.lang.String key) throws java.lang.Exception
key
- A String which is the key to the template.Exception,
- a generic exception.public static final java.lang.String getLayoutTemplateName(java.lang.String name) throws java.lang.Exception
name
- A String with the name of the template.Exception,
- a generic exception.public static final java.lang.String getNavigationName(java.lang.String name) throws java.lang.Exception
name
- A String with the name of the template.Exception,
- a generic exception.public static final java.lang.String getScreenName(java.lang.String name) throws java.lang.Exception
name
- A String with the name of the template.Exception,
- a generic exception.public static final java.lang.String getDefaultExtension()
public static final java.lang.String getDefaultScreen()
public static final java.lang.String getDefaultNavigation()
public static final java.lang.String getDefaultLayoutTemplate()
public static final void registerTemplateEngineService(TemplateEngineService service)
public static final java.lang.String[] translateTemplatePaths(java.lang.String[] templatePaths)
public static final boolean templateExists(java.lang.String template, java.lang.String[] templatePaths)
public static final java.lang.String getDefaultPageName(RunData data)
public static final java.lang.String getDefaultLayoutName(RunData data)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |