All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable, ValueAcceptingTagIF, ValueProducingTagIF

public class FilterTag extends BaseValueProducingAndAcceptingTag
INTERNAL: Value Producing Tag for taking an input collection and filtering it, passing only some of the elements on to its parent (could be a set tag or another filter element).
See Also:
  • Field Details

  • Constructor Details

    • FilterTag

      public FilterTag()
  • Method Details

    • process

      public Collection process(Collection tmObjects) throws jakarta.servlet.jsp.JspTagException
      Description copied from interface: ValueProducingTagIF
      INTERNAL: Process the input collection and return the output collection. This collection will afterwards typically be passed up to the parent tag, which should be a value-accepting tag.
      Throws:
      jakarta.servlet.jsp.JspTagException
      See Also:
    • setInstanceOf

      public void setInstanceOf(String instanceOf)
      Sets instanceOf string, which will first interpreted as an URI for retrieving a topic by it's subject indicator. If this is without success instanceOf will interpreted as a variable name.

      Special string "{NONE}" will be interpreted to retrieve all untyped instances.

    • setDecider

      public void setDecider(String classname)
    • setInScopeOf

      public void setInScopeOf(String inScopeOfValue)
    • setInvert

      public void setInvert(String invert)
    • setRandomElement

      public void setRandomElement(String randomElement)
      Set the behaviour of the filter to choose a random element from the given input collection.
      Since:
      1.3.2
    • setIs

      public void setIs(String kind)
      Sets the kind of topic map objects that should be passed on.
      Parameters:
      kind - String which should contain one of the following values: topicmap | association | occurrence | topic | basename | variant | role | locator
    • getDeciderInstance

      public NavigatorDeciderIF getDeciderInstance(String classname) throws NavigatorRuntimeException
      Throws:
      NavigatorRuntimeException