| java.lang.Object javax.servlet.jsp.tagext.TagSupport com.sun.portal.wireless.taglibs.base.BaseTagSupport com.sun.portal.wireless.taglibs.base.BeanSupport com.sun.portal.wireless.taglibs.base.BeanTestTag
All known Subclasses: com.sun.portal.wireless.taglibs.base.BeanTestNotTag, com.sun.portal.wireless.taglibs.util.BeanTestTag,
BeanTestTag | public class BeanTestTag extends BeanSupport (Code) | | BeanTestTag - test a bean property
Evaluates the body if the property is true; else skips the body.
A bean property is evaluated as follows:
- if the property value is null then return false
- if the value is a boolean then return the boolean value
- if the value is some other object then compare it to the specified value
Attributes:
property
name of the bean property to test
value
string value of the bean property to test; optional
id
object value of the bean property to test; optional
name
name to use to find the bean on the page context
author: Robert O'Brien version: 1.0 See Also: BeanSetTag See Also: BeanSupport |
value | public String value(Code) | | The value of the bean property to test
|
evaluate | public boolean evaluate(Object prop, Object test)(Code) | | Evaluate a bean property
Parameters: prop - the bean property value to test Parameters: test - the test value to compare against true if the two values are considered equivalent |
getValue | public String getValue()(Code) | | Get the value of the bean property
the value |
release | public void release()(Code) | | Cleanup
|
setValue | public void setValue(String value)(Code) | | Set the value of the bean property
Parameters: value - the value |
Methods inherited from com.sun.portal.wireless.taglibs.base.BeanSupport | public static Object accessProperty(Object bean, String property, Method method, Object args) throws IntrospectionException(Code)(Java Doc) public Object accessProperty(Object bean, Method method, Object args) throws IntrospectionException(Code)(Java Doc) public int doEndTag() throws JspException(Code)(Java Doc) public int doStartTag() throws JspException(Code)(Java Doc) public Object findBean()(Code)(Java Doc) public Object getBean()(Code)(Java Doc) public static HashMap getBeanProperties(Object bean) throws IntrospectionException(Code)(Java Doc) public static Object getInstanceOf(Object obj, Class target) throws InstantiationException(Code)(Java Doc) public String getProperty()(Code)(Java Doc) public static PropertyDescriptor getPropertyDescriptor(Object bean, String property) throws IntrospectionException(Code)(Java Doc) public static Object readProperty(Object bean, String property) throws JspException, IntrospectionException(Code)(Java Doc) public Object readProperty(Object bean) throws JspException, IntrospectionException(Code)(Java Doc) public void release()(Code)(Java Doc) public void setBean(Object bean)(Code)(Java Doc) public void setProperty(String property)(Code)(Java Doc) public static void writeProperty(Object bean, String property, Object value) throws JspException, IntrospectionException(Code)(Java Doc) public void writeProperty(Object bean, Object value) throws JspException, IntrospectionException(Code)(Java Doc)
|
Fields inherited from com.sun.portal.wireless.taglibs.base.BaseTagSupport | protected String name(Code)(Java Doc)
|
|
|