Package com.softsynth.jmsl.util
Class AccMutHolder
java.lang.Object
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
Constructors Constructor Description AccMutHolder(java.lang.Class myClass, java.lang.reflect.Method accessor, java.lang.reflect.Method mutator) -
Method Summary
Modifier and Type Method Description java.lang.StringgetCurrentValueAsString(java.lang.Object obj)For this property, return the value as a string for the specified objectjava.lang.StringgetProperty()voidsetCurrentValueFromString(java.lang.Object obj, java.lang.String s)For this property, set the value from a String.java.lang.StringtoString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
AccMutHolder
public AccMutHolder(java.lang.Class myClass, java.lang.reflect.Method accessor, java.lang.reflect.Method mutator)
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.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.InvocationTargetExceptionFor this property, return the value as a string for the specified object- Throws:
java.lang.IllegalAccessExceptionjava.lang.IllegalArgumentExceptionjava.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.InvocationTargetExceptionFor this property, set the value from a String. Converts to double, float, int, long, boolean, or byte depending on parameter type- Throws:
java.lang.IllegalAccessExceptionjava.lang.IllegalArgumentExceptionjava.lang.reflect.InvocationTargetException
-