Class ContentTag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
net.ontopia.topicmaps.nav2.taglibs.output.BaseOutputProducingTag
net.ontopia.topicmaps.nav2.taglibs.output.ContentTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable, Function<Object,String>, OutputProducingTagIF

public class ContentTag extends BaseOutputProducingTag implements Function<Object,String>
INTERNAL: Output Producing Tag for writing out the content of an occurrence or a string.

Note: Only outputs first element of collection.

See Also:
  • Field Details

    • strifyCN

      protected String strifyCN
  • Constructor Details

    • ContentTag

      public ContentTag()
  • Method Details

    • generateOutput

      public final void generateOutput(jakarta.servlet.jsp.JspWriter out, Iterator iter) throws jakarta.servlet.jsp.JspTagException, IOException
      Description copied from interface: OutputProducingTagIF
      INTERNAL: Generate information extracted from the input collection provided access by specified iterator. This is expected to be written to the JspWriter object.
      Specified by:
      generateOutput in interface OutputProducingTagIF
      Specified by:
      generateOutput in class BaseOutputProducingTag
      Throws:
      jakarta.servlet.jsp.JspTagException
      IOException
    • setStringifier

      public final void setStringifier(String strifyCN)
      Tag attribute for setting the stringifier to be used when producing the string from the selected object.
      Since:
      2.0
    • apply

      public String apply(Object object)
      PRIVATE: Included to implement StringifierIF interface.
      Specified by:
      apply in interface Function<Object,String>