Class 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 Detail

      • PropertyWriter

        public PropertyWriter()
    • Method Detail

      • writeProperty

        public static void writeProperty​(Object obj,
                                         String property,
                                         Object value)
        Writes the value of the specified property.
        Parameters:
        obj - the object
        property - the property name
        value - the property value
      • writeProperty

        public static void writeProperty​(Object obj,
                                         PropertySpec propSpec,
                                         Object value)
        Writes the value of the specified property.
        Parameters:
        obj - the object
        propSpec - the property specification
        value - the property value