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

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.QueryConstraintTag
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 QueryConstraintTag
extends CloudReferrerTag
implements QueryContainerReferrer

The most general 'constraint' tag. Constraints are constructed with a bunch of attributes.

Since:
MMBase-1.7
Version:
$Id: QueryConstraintTag.java,v 1.1.2.2 2004/06/18 13:02:24 michiel Exp $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
protected  Attribute caseSensitive
           
protected  Attribute container
           
protected  Attribute field
           
protected  Attribute field2
           
protected  Attribute inverse
           
protected  Attribute operator
           
protected  Attribute referid
           
protected  Attribute referid2
           
protected  Attribute value
           
protected  Attribute value2
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
contextId, EVAL_BODY, helper, id, pageContextTag, 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
QueryConstraintTag()
           
 
Method Summary
 int doStartTag()
           
 boolean getCaseSensitive()
           
 void setCasesensitive(java.lang.String c)
           
 void setContainer(java.lang.String c)
          If it should not use parent container
 void setField(java.lang.String f)
           
 void setField2(java.lang.String f)
           
 void setInverse(java.lang.String i)
           
 void setOperator(java.lang.String o)
           
 void setReferid(java.lang.String r)
          ContextReferrers normally can have the attribute 'referid'.
 void setReferid2(java.lang.String r)
           
 void setValue(java.lang.String v)
           
 void setValue2(java.lang.String v)
           
 
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, 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

operator

protected Attribute operator

field

protected Attribute field

value

protected Attribute value

referid

protected Attribute referid

value2

protected Attribute value2

referid2

protected Attribute referid2

inverse

protected Attribute inverse

field2

protected Attribute field2

caseSensitive

protected Attribute caseSensitive
Constructor Detail

QueryConstraintTag

public QueryConstraintTag()
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

setField2

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

setValue

public void setValue(java.lang.String v)
              throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setValue2

public void setValue2(java.lang.String v)
               throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setReferid

public void setReferid(java.lang.String r)
                throws javax.servlet.jsp.JspTagException
Description copied from class: ContextReferrerTag
ContextReferrers normally can have the attribute 'referid'. If a ContextReferrer has the 'id' attribute it registers its output in the surrounding Context. With 'referid' you can 'repeat' a tag which had the 'id' attribute.

Overrides:
setReferid in class ContextReferrerTag
Throws:
javax.servlet.jsp.JspTagException

setReferid2

public void setReferid2(java.lang.String r)
                 throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setOperator

public void setOperator(java.lang.String o)
                 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

setCasesensitive

public void setCasesensitive(java.lang.String c)
                      throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

getCaseSensitive

public boolean getCaseSensitive()
                         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