org.mmbase.bridge.jsp.taglib.pageflow
Class CompareTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.mmbase.bridge.jsp.taglib.ContextReferrerTag
              extended by org.mmbase.bridge.jsp.taglib.pageflow.PresentTag
                  extended by org.mmbase.bridge.jsp.taglib.pageflow.CompareTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, Condition, WriterReferrer
Direct Known Subclasses:
IsEmptyTag, IsGreaterThanTag, IsLessThanTag

public class CompareTag
extends PresentTag
implements Condition, WriterReferrer

A very simple tag to check if the value of a certain context variable equals a certain String value.

Version:
$Id: CompareTag.java 39018 2009-10-07 14:19:15Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
protected static Logger log
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.pageflow.PresentTag
inverse
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
contextId, EVAL_BODY, helper, id, pageContextTag, referid, writerid
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
CompareTag()
           
 
Method Summary
protected  boolean doCompare(Comparable<Comparable> v1, Comparable v2)
           
 int doStartTag()
           
protected  Object getCompare2()
           
 void setReferid2(String r)
           
 void setRegexp(String r)
           
 void setValue(String v)
           
 void setValueset(String vs)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.pageflow.PresentTag
doAfterBody, getInverse, setInverse
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
appendMoreParameters, doCatch, doEndTag, doFinally, fillStandardParameters, findLoopOrQuery, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getCurrentBlock, getDefaultLocale, getEscapedValue, getFormTag, getId, getLocale, getLocaleFromContext, getObject, getObjectConditional, getPageContext, getPageContextTag, getQuery, getReferid, getString, getTaglibVersion, getThreadPageContext, getTimeZone, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setListdelimiter, setPageContext, setReferid, setVartype, setWrite, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.Condition
setInverse
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.WriterReferrer
findWriter, setWriter
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Field Detail

log

protected static final Logger log
Constructor Detail

CompareTag

public CompareTag()
Method Detail

setValue

public void setValue(String v)
              throws JspTagException
Throws:
JspTagException

setValueset

public void setValueset(String vs)
                 throws JspTagException
Throws:
JspTagException

setRegexp

public void setRegexp(String r)
               throws JspTagException
Throws:
JspTagException

setReferid2

public void setReferid2(String r)
                 throws JspTagException
Throws:
JspTagException

doCompare

protected boolean doCompare(Comparable<Comparable> v1,
                            Comparable v2)

getCompare2

protected Object getCompare2()
                      throws JspTagException
Throws:
JspTagException

doStartTag

public int doStartTag()
               throws JspTagException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class PresentTag
Throws:
JspTagException


MMBase 2.0-SNAPSHOT - null