org.mmbase.bridge.jsp.taglib.containers
Class QueryAgeConstraintTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.mmbase.bridge.jsp.taglib.ContextReferrerTag
              extended byorg.mmbase.bridge.jsp.taglib.CloudReferrerTag
                  extended byorg.mmbase.bridge.jsp.taglib.containers.QueryAgeConstraintTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, ContainerReferrer, javax.servlet.jsp.tagext.IterationTag, QueryContainerReferrer, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class QueryAgeConstraintTag
extends CloudReferrerTag
implements QueryContainerReferrer

Cognate of daymarkers.

Since:
MMBase-1.7
Version:
$Id: QueryAgeConstraintTag.java,v 1.2.2.2 2004/07/26 20:12:19 nico Exp $
Author:
Michiel Meeuwissen
See Also:
DayMarkers, Serialized Form

Field Summary
protected  Attribute container
           
protected  Attribute field
           
protected  Attribute inverse
           
protected  Attribute maxAge
           
protected  Attribute minAge
           
 
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
QueryAgeConstraintTag()
           
 
Method Summary
 int doStartTag()
           
protected  int getDayMark(int age)
           
 void setContainer(java.lang.String c)
          If it should not use parent container
 void setField(java.lang.String f)
           
 void setInverse(java.lang.String i)
           
 void setMaxage(java.lang.String a)
           
 void setMinage(java.lang.String a)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
findCloudProvider, findCloudProvider, getCloud, getCloudContext, getCloudVar, getNode, getNodeOrNull, setCloud
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
doEndTag, findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getId, getLocale, getObject, getPageContext, getReferid, getString, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setPageContext, setReferid, setVartype, setWrite, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, 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 javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Field Detail

container

protected Attribute container

field

protected Attribute field

minAge

protected Attribute minAge

maxAge

protected Attribute maxAge

inverse

protected Attribute inverse
Constructor Detail

QueryAgeConstraintTag

public QueryAgeConstraintTag()
Method Detail

setContainer

public void setContainer(java.lang.String c)
                  throws javax.servlet.jsp.JspTagException
Description copied from interface: ContainerReferrer
If it should not use parent container

Specified by:
setContainer in interface ContainerReferrer
Throws:
javax.servlet.jsp.JspTagException

setField

public void setField(java.lang.String f)
              throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setMinage

public void setMinage(java.lang.String a)
               throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setMaxage

public void setMaxage(java.lang.String a)
               throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setInverse

public void setInverse(java.lang.String i)
                throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

getDayMark

protected int getDayMark(int age)
                  throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Throws:
javax.servlet.jsp.JspTagException


MMBase build 1.7.1.20041002