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

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.CloudReferrerTag
                  extended by org.mmbase.bridge.jsp.taglib.containers.QueryConstraintTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, ContainerReferrer, QueryContainerReferrer

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 35335 2009-05-21 08:14:41Z michiel $
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 part
           
protected  Attribute referid
           
protected  Attribute referid2
           
protected  Attribute value
           
protected  Attribute value2
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
cloudId
 
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(String c)
           
 void setContainer(String c)
          If it should not use parent container
 void setField(String f)
           
 void setField2(String f)
           
 void setInverse(String i)
           
 void setOperator(String o)
           
 void setPart(String p)
           
 void setReferid(String r)
          ContextReferrers normally can have the attribute 'referid'.
 void setReferid2(String r)
           
 void setValue(String v)
           
 void setValue2(String v)
           
 
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
appendMoreParameters, doCatch, doEndTag, doFinally, findLoopOrQuery, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getCurrentBlock, getDefaultLocale, getEscapedValue, getFormTag, getId, getLocaleFromContext, getObject, getObjectConditional, getPageContext, getPageContextTag, getQuery, getReferid, getString, getTaglibVersion, getThreadPageContext, getTimeZone, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setListdelimiter, 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

part

protected Attribute part
Constructor Detail

QueryConstraintTag

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

setField

public void setField(String f)
              throws JspTagException
Throws:
JspTagException

setField2

public void setField2(String f)
               throws JspTagException
Throws:
JspTagException

setValue

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

setValue2

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

setReferid

public void setReferid(String r)
                throws 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
Parameters:
r - referid value
Throws:
JspTagException - when parsing of attributes fails

setReferid2

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

setOperator

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

setInverse

public void setInverse(String i)
                throws JspTagException
Throws:
JspTagException

setCasesensitive

public void setCasesensitive(String c)
                      throws JspTagException
Throws:
JspTagException

setPart

public void setPart(String p)
             throws JspTagException
Throws:
JspTagException

getCaseSensitive

public boolean getCaseSensitive()
                         throws JspTagException
Throws:
JspTagException

doStartTag

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


MMBase 2.0-SNAPSHOT - null