class PropertyUtil extends java.lang.Object
Contains property-related static utility methods
Type Params | Return Type | Name and description |
---|---|---|
|
static void |
setPropertyFromString(java.lang.Object object, java.lang.String propertyName, java.lang.String propertyValue) Set the value of the named property on the specified Object from a String value. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Set the value of the named property on the specified Object from a String value. If the name specifies an int, long or boolean value then trim and parse the provided String value and convert to the appropriate type.
object
- - the Object whose field should be setname
- - the property name to setvalue
- - the property value as a String