com.softsynth.jmsl.util
Class AccMutHolder

java.lang.Object
  extended by com.softsynth.jmsl.util.AccMutHolder

public class AccMutHolder
extends java.lang.Object

Accessor and Mutator holder. Stores matching accessor and mutator methods for primitive types such as getIntValue() and setIntValue. Values themselves can be set and retrieved as String

Author:
Nick Didkovsky 3/7/01 9:20PM
See Also:
BeanInspector

Constructor Summary
AccMutHolder(java.lang.Class myClass, java.lang.reflect.Method accessor, java.lang.reflect.Method mutator)
           
 
Method Summary
 java.lang.String getCurrentValueAsString(java.lang.Object obj)
          For this property, return the value as a string for the specified object
 java.lang.String getProperty()
           
 void setCurrentValueFromString(java.lang.Object obj, java.lang.String s)
          For this property, set the value from a String.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccMutHolder

public AccMutHolder(java.lang.Class myClass,
                    java.lang.reflect.Method accessor,
                    java.lang.reflect.Method mutator)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getProperty

public java.lang.String getProperty()

getCurrentValueAsString

public java.lang.String getCurrentValueAsString(java.lang.Object obj)
                                         throws java.lang.IllegalAccessException,
                                                java.lang.IllegalArgumentException,
                                                java.lang.reflect.InvocationTargetException
For this property, return the value as a string for the specified object

Throws:
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException

setCurrentValueFromString

public void setCurrentValueFromString(java.lang.Object obj,
                                      java.lang.String s)
                               throws java.lang.IllegalAccessException,
                                      java.lang.IllegalArgumentException,
                                      java.lang.reflect.InvocationTargetException
For this property, set the value from a String. Converts to double, float, int, long, boolean, or byte depending on parameter type

Throws:
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException