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
FieldsModifier and TypeFieldDescriptionprotected ContextTagprotected booleanprotected intprotected booleanprotected StringFields 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
ConstructorsModifierConstructorDescriptionprotectedBaseOutputProducingTag(boolean escapeEntities, boolean suppressEmptyCollection) -
Method Summary
Modifier and TypeMethodDescriptionfinal intdoEndTag()intProcess the start tag for this instance.abstract voidgenerateOutput(jakarta.servlet.jsp.JspWriter out, Iterator iterator) INTERNAL: Generate information extracted from the input collection provided access by specified iterator.protected final intINTERNAL: gets number of elements contained in processed input collection.protected final voidprint2Writer(jakarta.servlet.jsp.JspWriter out, String string) INTERNAL: prints out string to specified JspWriter object with respect if the entities should be escaped.voidrelease()reset the state of the Tag.final voidtag 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
-
Field Details
-
contextTag
-
numberOfElements
protected int numberOfElements -
escapeEntities
protected boolean escapeEntities -
suppressEmptyCollection
protected boolean suppressEmptyCollection -
variableName
-
-
Constructor Details
-
BaseOutputProducingTag
public BaseOutputProducingTag() -
BaseOutputProducingTag
protected BaseOutputProducingTag(boolean escapeEntities, boolean suppressEmptyCollection)
-
-
Method Details
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspTagExceptionProcess the start tag for this instance.- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjakarta.servlet.jsp.tagext.TagSupport- Throws:
jakarta.servlet.jsp.JspTagException
-
doEndTag
public final int doEndTag()- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjakarta.servlet.jsp.tagext.TagSupport
-
release
public void release()reset the state of the Tag.- Specified by:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classjakarta.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:OutputProducingTagIFINTERNAL: Generate information extracted from the input collection provided access by specified iterator. This is expected to be written to theJspWriterobject.- Specified by:
generateOutputin interfaceOutputProducingTagIF- Throws:
jakarta.servlet.jsp.JspTagExceptionIOException
-
getCollectionSize
protected final int getCollectionSize()INTERNAL: gets number of elements contained in processed input collection. -
setOf
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
-