Class CmsJspStandardContextBean.TemplateBean

java.lang.Object
org.opencms.jsp.util.CmsJspStandardContextBean.TemplateBean
Enclosing class:
CmsJspStandardContextBean

Bean containing a template name and URI.

  • Constructor Details

    • TemplateBean

      public TemplateBean(String name, CmsResource resource)
      Creates a new instance.

      Parameters:
      name - the template name
      resource - the template resource
    • TemplateBean

      public TemplateBean(String name, String uri)
      Creates a new instance with an URI instead of a resoure.

      Parameters:
      name - the template name
      uri - the template uri
  • Method Details

    • getName

      public String getName()
      Gets the template name.

      Returns:
      the template name
    • getResource

      Gets the template resource.

      Returns:
      the template resource
    • getUri

      public 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