jrun.jsp.tags
Class SetProperty

jrun.jsp.tags.SetProperty

public class SetProperty


Inner Class Summary
 class SetProperty.NoSuchBeanException
          ({page}:{line}) No such bean '{name}'
 class SetProperty.NoSuchPropertyException
          ({page}:{line}) The bean '{name}' does not have a '{property}' property
 
Constructor Summary
SetProperty()
           
 
Method Summary
 boolean containsSettableProperty(java.lang.Class clazz, java.lang.String property)
          Find out if a bean has a settable property
 int doStartTag()
           
 void release()
           
 void setBeanProperty(java.lang.String property, java.lang.String str)
           
 void setName(java.lang.String name)
           
 void setParam(java.lang.String param)
           
 void setProperty(java.lang.Object bean, java.lang.String property, java.lang.Object value)
          Set a simple bean property
 void setProperty(java.lang.String property)
           
 void setValue(boolean value)
           
 void setValue(byte value)
           
 void setValue(char value)
           
 void setValue(double value)
           
 void setValue(float value)
           
 void setValue(int value)
           
 void setValue(long value)
           
 void setValue(java.lang.Object value)
           
 void setValue(short value)
           
 

Constructor Detail

SetProperty

public SetProperty()
Method Detail

setName

public void setName(java.lang.String name)

setValue

public void setValue(java.lang.Object value)

setValue

public void setValue(int value)

setValue

public void setValue(boolean value)

setValue

public void setValue(char value)

setValue

public void setValue(short value)

setValue

public void setValue(long value)

setValue

public void setValue(float value)

setValue

public void setValue(double value)

setValue

public void setValue(byte value)

setProperty

public void setProperty(java.lang.String property)

setParam

public void setParam(java.lang.String param)

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException

setBeanProperty

public void setBeanProperty(java.lang.String property,
                            java.lang.String str)
                     throws javax.servlet.jsp.JspException

setProperty

public void setProperty(java.lang.Object bean,
                        java.lang.String property,
                        java.lang.Object value)
                 throws javax.servlet.jsp.JspException,
                        java.lang.IllegalArgumentException,
                        java.lang.IllegalAccessException,
                        java.lang.reflect.InvocationTargetException,
                        java.beans.IntrospectionException
Set a simple bean property
Parameters:
bean - The bean to set the property on
property - The name of the property
value - Value to set the property to
Throws:
java.beans.IntrospectionException - If an introspection error occurs trying to get property descriptor
SetProperty.NoSuchPropertyException - If the property doesn't exist on this bean
java.lang.NoSuchMethodException - If the property set method doesn't exist on this bean
java.lang.IllegalArgumentException - If the args don't match up or indexed property with no non-indexed access
java.lang.IllegalAccessException - If the write method is inaccessible
java.lang.reflect.InvocationTargetException - If an exception is thrown calling the set method

containsSettableProperty

public boolean containsSettableProperty(java.lang.Class clazz,
                                        java.lang.String property)
                                 throws java.beans.IntrospectionException
Find out if a bean has a settable property
Parameters:
clazz - The bean type to set the property on
property - The name of the property
Throws:
java.beans.IntrospectionException - If an introspection error occurs trying to get property descriptor
SetProperty.NoSuchPropertyException - If the property doesn't exist on this bean

release

public void release()


Copyright � 2002 Macromedia Corporation. All Rights Reserved.