Class FilterTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
net.ontopia.topicmaps.nav2.taglibs.value.BaseValueProducingTag
net.ontopia.topicmaps.nav2.taglibs.value.BaseValueProducingAndAcceptingTag
net.ontopia.topicmaps.nav2.taglibs.TMvalue.FilterTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag,Serializable,ValueAcceptingTagIF,ValueProducingTagIF
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class net.ontopia.topicmaps.nav2.taglibs.value.BaseValueProducingAndAcceptingTag
contextTag, inputCollectionFields inherited from class net.ontopia.topicmaps.nav2.taglibs.value.BaseValueProducingTag
variableNameFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDeciderInstance(String classname) process(Collection tmObjects) INTERNAL: Process the input collection and return the output collection.voidsetDecider(String classname) voidsetInScopeOf(String inScopeOfValue) voidsetInstanceOf(String instanceOf) Sets instanceOf string, which will first interpreted as an URI for retrieving a topic by it's subject indicator.voidvoidSets the kind of topic map objects that should be passed on.voidsetRandomElement(String randomElement) Set the behaviour of the filter to choose a random element from the given input collection.Methods inherited from class net.ontopia.topicmaps.nav2.taglibs.value.BaseValueProducingAndAcceptingTag
accept, doEndTag, doStartTag, getInputCollectionMethods inherited from class net.ontopia.topicmaps.nav2.taglibs.value.BaseValueProducingTag
release, setOfMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Field Details
-
CLASS_TOPICMAP
- See Also:
-
CLASS_TOPIC
- See Also:
-
CLASS_ASSOC
- See Also:
-
CLASS_OCC
- See Also:
-
CLASS_BASENAME
- See Also:
-
CLASS_VARIANT
- See Also:
-
CLASS_ROLE
- See Also:
-
CLASS_LOCATOR
- See Also:
-
UNTYPED
- See Also:
-
-
Constructor Details
-
FilterTag
public FilterTag()
-
-
Method Details
-
process
Description copied from interface:ValueProducingTagIFINTERNAL: 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
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
-
setInScopeOf
-
setInvert
-
setRandomElement
Set the behaviour of the filter to choose a random element from the given input collection.- Since:
- 1.3.2
-
setIs
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
- Throws:
NavigatorRuntimeException
-