public abstract class BaseOutputProducingTag extends javax.servlet.jsp.tagext.TagSupport implements OutputProducingTagIF
Modifier and Type | Field and Description |
---|---|
protected ContextTag |
contextTag |
protected boolean |
escapeEntities |
protected int |
numberOfElements |
protected boolean |
suppressEmptyCollection |
protected String |
variableName |
Modifier | Constructor and Description |
---|---|
|
BaseOutputProducingTag() |
protected |
BaseOutputProducingTag(boolean escapeEntities,
boolean suppressEmptyCollection) |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
int |
doStartTag()
Process the start tag for this instance.
|
abstract void |
generateOutput(javax.servlet.jsp.JspWriter out,
Iterator iterator)
INTERNAL: Generate information extracted from the input collection
provided access by specified iterator.
|
protected int |
getCollectionSize()
INTERNAL: gets number of elements contained in processed
input collection.
|
protected void |
print2Writer(javax.servlet.jsp.JspWriter out,
String string)
INTERNAL: prints out string to specified JspWriter object
with respect if the entities should be escaped.
|
void |
release()
reset the state of the Tag.
|
void |
setOf(String variableName)
tag attribute for setting the variable name of the input collection
common to all subclasses.
|
protected ContextTag contextTag
protected int numberOfElements
protected boolean escapeEntities
protected boolean suppressEmptyCollection
protected String variableName
public BaseOutputProducingTag()
protected BaseOutputProducingTag(boolean escapeEntities, boolean suppressEmptyCollection)
public int doStartTag() throws javax.servlet.jsp.JspTagException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspTagException
public final int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
public abstract void generateOutput(javax.servlet.jsp.JspWriter out, Iterator iterator) throws javax.servlet.jsp.JspTagException, IOException
OutputProducingTagIF
JspWriter
object.generateOutput
in interface OutputProducingTagIF
javax.servlet.jsp.JspTagException
IOException
protected final int getCollectionSize()
public final void setOf(String variableName)
protected final void print2Writer(javax.servlet.jsp.JspWriter out, String string) throws IOException
IOException