Class BaseValueProducingAndAcceptingTag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
net.ontopia.topicmaps.nav2.taglibs.value.BaseValueProducingTag
net.ontopia.topicmaps.nav2.taglibs.value.BaseValueProducingAndAcceptingTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable, ValueAcceptingTagIF, ValueProducingTagIF
Direct Known Subclasses:
BaseScopedTag, ClassesOfTag, FilterTag, IndicatorsTag, InstancesTag, LocatorTag, LookupTag, NameTag, ReifiedTag, ReifierTag, ScopeTag, SourceLocatorsTag, SplitterTag, SubclassesTag, SubjectAddressTag, SuperclassesTag, TopicsTag

public abstract class BaseValueProducingAndAcceptingTag extends BaseValueProducingTag implements ValueProducingTagIF, ValueAcceptingTagIF
INTERNAL: Abstract super-class of a tag that is both value-producing and value-accepting. Note: Not all value producing tags are manipulating collections, so this is not the base class of all value producing tags. Exceptions are StringTag and ClassesTag.
See Also:
  • Field Details

    • contextTag

      protected ContextTag contextTag
    • inputCollection

      protected Collection inputCollection
  • Constructor Details

    • BaseValueProducingAndAcceptingTag

      public BaseValueProducingAndAcceptingTag()
  • 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 BaseValueProducingTag
      Throws:
      jakarta.servlet.jsp.JspTagException
    • doEndTag

      public int doEndTag() throws jakarta.servlet.jsp.JspException
      Process the end tag. Subclasses implementing this method must clear member variables.
      Specified by:
      doEndTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class BaseValueProducingTag
      Throws:
      jakarta.servlet.jsp.JspException
    • getInputCollection

      protected Collection getInputCollection(ContextManagerIF ctxtMgr) throws NavigatorRuntimeException
      INTERNAL: Return inputCollection if it was already set, then call implementation from superclass.
      Overrides:
      getInputCollection in class BaseValueProducingTag
      Throws:
      NavigatorRuntimeException
    • accept

      public void accept(Collection inputCollection)
      Description copied from interface: ValueAcceptingTagIF
      Accepts input collection and make it accessible for tag.
      Specified by:
      accept in interface ValueAcceptingTagIF