org.pfsw.reflect
Interface AttributeReadWriteAccess

All Superinterfaces:
AttributeReadAccess
All Known Implementing Classes:
ObjectAccessWrapper, ObjectOrMapAccessWrapper

public interface AttributeReadWriteAccess
extends AttributeReadAccess

Specifies the methods an object must implement to provide generic write access to its attributes.
Such attributes can be instance variables of an object or values stored in properties or maps.


Method Summary
 void setAttributeValue(java.lang.String name, java.lang.Object value)
          Sets the current value of the attribute with the given name.
 
Methods inherited from interface org.pfsw.reflect.AttributeReadAccess
getAttributeNames, getAttributeValue
 

Method Detail

setAttributeValue

void setAttributeValue(java.lang.String name,
                       java.lang.Object value)
                       throws java.lang.NoSuchFieldException
Sets the current value of the attribute with the given name.

Parameters:
name - The attribute's name ( case sensitive )
value - The value to be put into the attributes 'slot'
Throws:
java.lang.NoSuchFieldException - If there is no attribute with the given name