Class BaseOutputProducingTag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
net.ontopia.topicmaps.nav2.taglibs.output.BaseOutputProducingTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable, OutputProducingTagIF
Direct Known Subclasses:
ContentTag, CountTag, LinkTag, LocatorTag, NameTag, ObjectIdTag, SymbolicIdTag, TopicMapIdTag

public abstract class BaseOutputProducingTag extends jakarta.servlet.jsp.tagext.TagSupport implements OutputProducingTagIF
INTERNAL: Abstract super-class of an Output-Producing Tag.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected ContextTag
     
    protected boolean
     
    protected int
     
    protected boolean
     
    protected String
     

    Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport

    id, pageContext

    Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag

    EVAL_BODY_AGAIN

    Fields inherited from interface jakarta.servlet.jsp.tagext.Tag

    EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    BaseOutputProducingTag(boolean escapeEntities, boolean suppressEmptyCollection)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final int
     
    int
    Process the start tag for this instance.
    abstract void
    generateOutput(jakarta.servlet.jsp.JspWriter out, Iterator iterator)
    INTERNAL: Generate information extracted from the input collection provided access by specified iterator.
    protected final int
    INTERNAL: gets number of elements contained in processed input collection.
    protected final void
    print2Writer(jakarta.servlet.jsp.JspWriter out, String string)
    INTERNAL: prints out string to specified JspWriter object with respect if the entities should be escaped.
    void
    reset the state of the Tag.
    final void
    setOf(String variableName)
    tag attribute for setting the variable name of the input collection common to all subclasses.

    Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport

    doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • contextTag

      protected ContextTag contextTag
    • numberOfElements

      protected int numberOfElements
    • escapeEntities

      protected boolean escapeEntities
    • suppressEmptyCollection

      protected boolean suppressEmptyCollection
    • variableName

      protected String variableName
  • Constructor Details

    • BaseOutputProducingTag

      public BaseOutputProducingTag()
    • BaseOutputProducingTag

      protected BaseOutputProducingTag(boolean escapeEntities, boolean suppressEmptyCollection)
  • Method Details

    • doStartTag

      public int doStartTag() throws jakarta.servlet.jsp.JspTagException
      Process the start tag for this instance.
      Specified by:
      doStartTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doStartTag in class jakarta.servlet.jsp.tagext.TagSupport
      Throws:
      jakarta.servlet.jsp.JspTagException
    • doEndTag

      public final int doEndTag()
      Specified by:
      doEndTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class jakarta.servlet.jsp.tagext.TagSupport
    • release

      public void release()
      reset the state of the Tag.
      Specified by:
      release in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      release in class jakarta.servlet.jsp.tagext.TagSupport
    • generateOutput

      public abstract void generateOutput(jakarta.servlet.jsp.JspWriter out, Iterator iterator) 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
      Throws:
      jakarta.servlet.jsp.JspTagException
      IOException
    • getCollectionSize

      protected final int getCollectionSize()
      INTERNAL: gets number of elements contained in processed input collection.
    • setOf

      public final void setOf(String variableName)
      tag attribute for setting the variable name of the input collection common to all subclasses.
    • print2Writer

      protected final void print2Writer(jakarta.servlet.jsp.JspWriter out, String string) throws IOException
      INTERNAL: prints out string to specified JspWriter object with respect if the entities should be escaped.
      Throws:
      IOException