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