|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 |
getDefaultLayout()
Get the default layout module name of the template engine service corresponding to the default template name extension. |
static java.lang.String |
getDefaultLayoutName(RunData data)
Find the default layout module name for the given request. |
static java.lang.String |
getDefaultLayoutName(java.lang.String template)
Get the default layout module name of the template engine service corresponding to the template name extension of the named template. |
static java.lang.String |
getDefaultLayoutTemplate()
Get the default layout template given in the properties file. |
static java.lang.String |
getDefaultLayoutTemplateName(java.lang.String template)
Get the default layout template name of the template engine service corresponding to the template name extension of the named template. |
static java.lang.String |
getDefaultNavigation()
Get the default Navigation given in the properties file. |
static java.lang.String |
getDefaultNavigationName(java.lang.String template)
Get the default navigation module name of the template engine service corresponding to the template name extension of the named template. |
static java.lang.String |
getDefaultPage()
Get the default page module name of the template engine service corresponding to the default template name extension. |
static java.lang.String |
getDefaultPageName(RunData data)
Find the default page module name for the given request. |
static java.lang.String |
getDefaultPageName(java.lang.String template)
Get the default page module name of the template engine service corresponding to the template name extension of the named template. |
static java.lang.String |
getDefaultScreen()
Get the Screen template given in the properties file. |
static java.lang.String |
getDefaultScreenName(java.lang.String template)
Get the default screen module name of the template engine service corresponding to the template name extension of the named template. |
static java.lang.String |
getDefaultTemplate()
Returns the Default Template Name with the Default Extension. |
static java.lang.String |
getExtension(java.lang.String template)
Return Extension for a supplied template |
static java.lang.String |
getLayoutName(java.lang.String template)
Locate and return the name of the layout module to be used with the named layout template. |
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 template)
Locate and return the name of the navigation module to be used with the named navigation template. |
static java.lang.String |
getNavigationTemplateName(java.lang.String key)
Locate and return the name of a navigation template. |
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. |
static TemplateService |
getService()
Utility method for accessing the service implementation |
static TemplateEngineService |
getTemplateEngineService(java.lang.String template)
The TemplateEngineService
associated with the specified template's file extension. |
static boolean |
isCaching()
Returns true if the Template Service has caching activated |
static void |
registerTemplateEngineService(TemplateEngineService service)
Registers the provided template engine for use by the TemplateService . |
static boolean |
templateExists(java.lang.String template,
java.lang.String[] templatePaths)
Deprecated. Use templateExists from the various Templating Engines |
static java.lang.String[] |
translateTemplatePaths(java.lang.String[] templatePaths)
Deprecated. Each template engine service should know how to translate a request onto a file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TurbineTemplate()
Method Detail |
public static TemplateService getService()
public static final boolean isCaching()
public static final java.lang.String getDefaultExtension()
public static final java.lang.String getExtension(java.lang.String template)
template
- The template name
public static final java.lang.String getDefaultTemplate()
public static final java.lang.String getDefaultPage()
public static final java.lang.String getDefaultScreen()
public static final java.lang.String getDefaultLayout()
public static final java.lang.String getDefaultNavigation()
public static final java.lang.String getDefaultLayoutTemplate()
public static final java.lang.String getDefaultPageName(java.lang.String template)
template
- The template name.
public static final java.lang.String getDefaultScreenName(java.lang.String template)
template
- The template name.
public static final java.lang.String getDefaultLayoutName(java.lang.String template)
template
- The template name.
public static final java.lang.String getDefaultNavigationName(java.lang.String template)
template
- The template name.
public static final java.lang.String getDefaultLayoutTemplateName(java.lang.String template)
template
- The template name.
public static final java.lang.String getDefaultPageName(RunData data)
data
- The encapsulation of the request to retrieve the
default page for.
public static final java.lang.String getDefaultLayoutName(RunData data)
data
- The encapsulation of the request to retrieve the
default layout for.
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.
java.lang.Exception
public static final java.lang.String getLayoutName(java.lang.String template) throws java.lang.Exception
template
- The layout template name.
Exception,
- a generic exception.
java.lang.Exception
public static final java.lang.String getNavigationName(java.lang.String template) throws java.lang.Exception
template
- The navigation template name.
Exception,
- a generic exception.
java.lang.Exception
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.
java.lang.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.
java.lang.Exception
public static final java.lang.String getNavigationTemplateName(java.lang.String key) throws java.lang.Exception
key
- A String which is the key to the template.
Exception,
- a generic exception.
java.lang.Exception
public static final java.lang.String[] translateTemplatePaths(java.lang.String[] templatePaths)
templatePaths
- An array of template paths.
public static final boolean templateExists(java.lang.String template, java.lang.String[] templatePaths)
TemplateEngineService
to
check the existance of the specified template.
template
- The template to check for the existance of.templatePaths
- The paths to check for the template.public static final void registerTemplateEngineService(TemplateEngineService service)
TemplateService
.
service
- The TemplateEngineService
to register.public static final TemplateEngineService getTemplateEngineService(java.lang.String template)
TemplateEngineService
associated with the specified template's file extension.
template
- The template name.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |