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

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.QueryCompositeConstraintTag
All Implemented Interfaces:
BodyTag, ContainerReferrer, IterationTag, QueryContainerReferrer, Serializable, Tag

public class QueryCompositeConstraintTag
extends CloudReferrerTag
implements QueryContainerReferrer

mm:composite makes it possible to connect constraints by 'OR'.

Since:
MMBase-1.7
Version:
$Id: QueryCompositeConstraintTag.java,v 1.6 2005/12/21 11:39:25 michiel Exp $
Author:
Pierre van Rooden, Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
protected  Attribute container
           
protected  Attribute operator
           
 
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
QueryCompositeConstraintTag()
           
 
Method Summary
 void addChildConstraint(Constraint cons)
           
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
           
protected  int getOperator()
           
 void setContainer(String c)
          If it should not use parent container
 void setOperator(String o)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
fillStandardParameters, findCloudProvider, findCloudProvider, getCloudContext, getCloudVar, getLocale, getNode, getNodeOrNull, setCloud
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
findLoopOrQuery, findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getDefaultLocale, getEscapedValue, getId, getObject, getObjectConditional, getPageContext, getPageContextTag, getReferid, getString, getTaglibVersion, 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 javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Field Detail

container

protected Attribute container

operator

protected Attribute operator
Constructor Detail

QueryCompositeConstraintTag

public QueryCompositeConstraintTag()
Method Detail

setContainer

public void setContainer(String c)
                  throws JspTagException
Description copied from interface: ContainerReferrer
If it should not use parent container

Specified by:
setContainer in interface ContainerReferrer
Throws:
JspTagException

setOperator

public void setOperator(String o)
                 throws JspTagException
Throws:
JspTagException

getOperator

protected int getOperator()
                   throws JspTagException
Throws:
JspTagException

addChildConstraint

public void addChildConstraint(Constraint cons)
                        throws JspTagException
Throws:
JspTagException

doStartTag

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

doAfterBody

public int doAfterBody()
                throws JspTagException
Specified by:
doAfterBody in interface IterationTag
Throws:
JspTagException

doEndTag

public int doEndTag()
             throws JspTagException
Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class ContextReferrerTag
Throws:
JspTagException


MMBase build 1.8.1.20060716