public class IfTag extends javax.servlet.jsp.tagext.TagSupport implements ValueProducingTagIF, ValueAcceptingTagIF
Constructor and Description |
---|
IfTag() |
Modifier and Type | Method and Description |
---|---|
void |
accept(Collection inputCollection)
Accepts input collection and make it accessible for tag.
|
int |
doEndTag()
Process the end tag.
|
int |
doStartTag()
Process the start tag for this instance.
|
protected NavigatorDeciderIF |
getDeciderInstance(String classname) |
protected boolean |
matchCondition()
If all conditions are matched deliver true, otherwise false.
|
Collection |
process(Collection input)
INTERNAL: Process the input collection and return the output
collection.
|
void |
release()
Resets the state of the Tag.
|
void |
setDecider(String classname) |
void |
setEquals(String equalsVariableName) |
void |
setGreaterThan(String greaterThanString)
Sets Upper Bound test value against Collection size.
|
void |
setLessThan(String lessThanString)
Sets Lower Bound test value against Collection size.
|
void |
setName(String collectionName) |
void |
setSizeEquals(String equalsSizeString)
Sets exact equals size test value against Collection size.
|
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 int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
protected boolean matchCondition()
public Collection process(Collection input)
ValueProducingTagIF
process
in interface ValueProducingTagIF
BaseValueProducingTag
public void accept(Collection inputCollection)
ValueAcceptingTagIF
accept
in interface ValueAcceptingTagIF
public void setName(String collectionName)
public void setDecider(String classname) throws NavigatorRuntimeException
NavigatorRuntimeException
public void setEquals(String equalsVariableName)
public void setLessThan(String lessThanString)
lessThanString
- try to convert to valid integer,
otherwise fallback to default value (-1).public void setGreaterThan(String greaterThanString)
greaterThanString
- try to convert to valid integer,
otherwise fallback to default value (-1).public void setSizeEquals(String equalsSizeString)
equalsSizeString
- try to convert to valid integer,
otherwise fallback to default value (-1).protected NavigatorDeciderIF getDeciderInstance(String classname) throws NavigatorRuntimeException
NavigatorRuntimeException