DJDoc v.1.0.0b-1

net.sf.djdoc.servlet
Class BitAndTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by net.sf.djdoc.servlet.BitAndTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class BitAndTag
extends javax.servlet.jsp.tagext.SimpleTagSupport

The BitAndTag is a custom JSP tag class which implements support for the bitwise and-operation that is unfortunately not part of the EL functionality. This tag is used on the overview-frame and package-frame pages for extracting the individual user view preference settings from the viewPref bit field.


Constructor Summary
BitAndTag()
           
 
Method Summary
 void doTag()
          This method performs the actual AND computation.
 void setValue1(java.lang.String value1)
          The value of the first number to be ANDed.
 void setValue2(java.lang.String value2)
          The value of the second number to be ANDed.
 void setVar(java.lang.String var)
          Setter method for the name of the variable to which the result should be assigned.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitAndTag

public BitAndTag()
Method Detail

setVar

public void setVar(java.lang.String var)
Setter method for the name of the variable to which the result should be assigned.

Parameters:
var - The name of the result variable

setValue1

public void setValue1(java.lang.String value1)
The value of the first number to be ANDed.

Parameters:
value1 - The first number of the AND computation

setValue2

public void setValue2(java.lang.String value2)
The value of the second number to be ANDed.

Parameters:
value2 - The second number of the AND computation

doTag

public void doTag()
This method performs the actual AND computation. It stores the result in an attribute whose name is specified by the value of the var attribute.

Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport

DJDoc v.1.0.0b-1