Class CmsJspTagContentInfo

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.opencms.jsp.CmsJspScopedVarBodyTagSuport
org.opencms.jsp.CmsJspTagContentInfo
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, I_CmsMacroResolver

Used to access and display XML content item information from the VFS.

Since:
6.0.0
See Also:
  • Constructor Details

  • Method Details

    • doEndTag

      public int doEndTag()
      Specified by:
      doEndTag in interface javax.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
      See Also:
      • Tag.doEndTag()
    • doStartTag

      public int doStartTag() throws javax.servlet.jsp.JspException
      Specified by:
      doStartTag in interface javax.servlet.jsp.tagext.Tag
      Overrides:
      doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
      Throws:
      javax.servlet.jsp.JspException
      See Also:
      • Tag.doStartTag()
    • getMacroValue

      public String getMacroValue(String macro)
      Description copied from interface: I_CmsMacroResolver
      Resolves a single macro to the macro value, returns null if the macro could not be resolved.

      Specified by:
      getMacroValue in interface I_CmsMacroResolver
      Parameters:
      macro - the macro to resolve
      Returns:
      the resolved macro or null if the macro could not be resolved
      See Also:
    • getValue

      public String getValue()
      Returns the name of the content info's value that should be printed out.

      Returns:
      the name of the content info's value that should be printed out
    • isKeepEmptyMacros

      public boolean isKeepEmptyMacros()
      Description copied from interface: I_CmsMacroResolver
      Returns true if macros that could not be resolved are kept "as is" in the input String, false if they are replaced by an empty String.

      Specified by:
      isKeepEmptyMacros in interface I_CmsMacroResolver
      Returns:
      true if macros that could not be resolved are kept "as is" in the input String, false if they are replaced by an empty String
      See Also:
    • release

      public void release()
      Specified by:
      release in interface javax.servlet.jsp.tagext.Tag
      Overrides:
      release in class CmsJspScopedVarBodyTagSuport
      See Also:
      • Tag.release()
    • resolveMacros

      public String resolveMacros(String input)
      Description copied from interface: I_CmsMacroResolver
      Resolves all macros in the input, replacing them with the macro values.

      The flag I_CmsMacroResolver.isKeepEmptyMacros() controls how to deal with macros found in the input that can not be resolved.

      Specified by:
      resolveMacros in interface I_CmsMacroResolver
      Parameters:
      input - the input to resolve the macros in
      Returns:
      the input with all macros resolved
      See Also:
    • setValue

      public void setValue(String value)
      Sets the name of the content info's value that should be printed out.

      Parameters:
      value - the name of the content info's value that should be printed out
    • storeContentInfoBean

      protected void storeContentInfoBean(CmsJspTagResourceLoad container)
      Stores the container's content info bean in the page context.

      Parameters:
      container - the parent container