Package org.opencms.jsp.util
Class CmsJspStandardContextBean.TemplateBean
java.lang.Object
org.opencms.jsp.util.CmsJspStandardContextBean.TemplateBean
- Enclosing class:
- CmsJspStandardContextBean
Bean containing a template name and URI.
-
Constructor Summary
ConstructorDescriptionTemplateBean
(String name, String uri) Creates a new instance with an URI instead of a resoure.TemplateBean
(String name, CmsResource resource) Creates a new instance. -
Method Summary
-
Constructor Details
-
TemplateBean
Creates a new instance.- Parameters:
name
- the template nameresource
- the template resource
-
TemplateBean
Creates a new instance with an URI instead of a resoure.- Parameters:
name
- the template nameuri
- the template uri
-
-
Method Details
-
getName
Gets the template name.- Returns:
- the template name
-
getResource
Gets the template resource.- Returns:
- the template resource
-
getUri
Gets the template uri.- Returns:
- the template URI.
-
isForced
Returns true if the template context was manually selected.- Returns:
- true if the template context was manually selected
-
setForced
Sets the 'forced' flag to a new value.- Parameters:
forced
- the new value
-