org.apache.taglibs.jndi
Class GetAttributeTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.taglibs.jndi.GetAttributeTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class GetAttributeTag
extends javax.servlet.jsp.tagext.BodyTagSupport

Version:
$Revision$
Author:
Danno Ferrin
See Also:
Serialized Form

Field Summary
static int ITERATE_VALUES
          body should be iterated for each value
static int ONE_VALUE
          Only take one value (first value if ordered)
static int SEPARATE_VALUES
          Body provides a separator for the values
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, 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
GetAttributeTag()
          Creates new GetAttributeTag
 
Method Summary
static java.lang.String decodeMultivalue(int multivalue)
           
static int decodeMultivalue(java.lang.String multivalue)
           
static int decodeScope(java.lang.String scope)
           
 int doAfterBody()
           
 int doEndTag()
           
 void doInitBody()
           
 int doStartTag()
           
 java.lang.String getAttribute()
          Getter for property attribute.
 java.lang.String getMultivalue()
          Getter for property multivalue
 java.lang.Object getObject()
          Getter for property object.
 void setAttribute(java.lang.String attribute)
          Setter for property attribute.
 void setMultivalue(java.lang.String multivalue)
          Setter for property multivalue.
 void setObject(javax.naming.directory.DirContext object)
          Setter for property object.
 void setRef(java.lang.String ref)
          Setter for property ref.
 void setScope(java.lang.String scope)
          Setter for property scope.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, 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, setPageContext, setParent
 

Field Detail

ONE_VALUE

public static final int ONE_VALUE
Only take one value (first value if ordered)

See Also:
Constant Field Values

SEPARATE_VALUES

public static final int SEPARATE_VALUES
Body provides a separator for the values

See Also:
Constant Field Values

ITERATE_VALUES

public static final int ITERATE_VALUES
body should be iterated for each value

See Also:
Constant Field Values
Constructor Detail

GetAttributeTag

public GetAttributeTag()
Creates new GetAttributeTag

Method Detail

setScope

public void setScope(java.lang.String scope)
Setter for property scope.

Parameters:
Scope - New value of property scope.

getObject

public java.lang.Object getObject()
Getter for property object.

Returns:
Value of property object.

setObject

public void setObject(javax.naming.directory.DirContext object)
Setter for property object.

Parameters:
object - New value of property object.

setRef

public void setRef(java.lang.String ref)
Setter for property ref.

Parameters:
ref - New value of property ref.

getAttribute

public java.lang.String getAttribute()
Getter for property attribute.

Returns:
Value of property attribute.

setAttribute

public void setAttribute(java.lang.String attribute)
Setter for property attribute.

Parameters:
attribute - New value of property attribute.

getMultivalue

public java.lang.String getMultivalue()
Getter for property multivalue

Returns:
Value of property multivalue.

setMultivalue

public void setMultivalue(java.lang.String multivalue)
Setter for property multivalue.

Parameters:
multivalue - New value of property multivalue.

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doInitBody

public void doInitBody()
                throws javax.servlet.jsp.JspException
Specified by:
doInitBody in interface javax.servlet.jsp.tagext.BodyTag
Overrides:
doInitBody in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

decodeMultivalue

public static java.lang.String decodeMultivalue(int multivalue)

decodeMultivalue

public static int decodeMultivalue(java.lang.String multivalue)

decodeScope

public static int decodeScope(java.lang.String scope)


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.