Package eu.woolplatform.utils.beans
Class PropertyWriter
- java.lang.Object
-
- eu.woolplatform.utils.beans.PropertyWriter
-
public class PropertyWriter extends Object
This class can write the value of a property in a JavaBeans-like object. A property may be accessed by a public field or getter and setter methods.- See Also:
PropertyScanner
-
-
Constructor Summary
Constructors Constructor Description PropertyWriter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidwriteProperty(Object obj, PropertySpec propSpec, Object value)Writes the value of the specified property.static voidwriteProperty(Object obj, String property, Object value)Writes the value of the specified property.
-
-
-
Method Detail
-
writeProperty
public static void writeProperty(Object obj, String property, Object value)
Writes the value of the specified property.- Parameters:
obj- the objectproperty- the property namevalue- the property value
-
writeProperty
public static void writeProperty(Object obj, PropertySpec propSpec, Object value)
Writes the value of the specified property.- Parameters:
obj- the objectpropSpec- the property specificationvalue- the property value
-
-