Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdaemon.util
Interface Accessor  view Accessor download Accessor.java

All Known Implementing Classes:
ArrayAccessor, BeanAccessor

public interface Accessor

An adapter interface which allows attributes of an object to be accessed via standard methods. Attributes must have name through which they can be accessed. Accessor provides a way of getting an attribute value (getAttribute) and setting and attribute value (setAttribute). It explicitly does not provide any way to add new attributes to an object.


Method Summary
 java.lang.Object getAttribute(java.lang.String name, java.lang.Object aggregate)
          Retrieves a named attribute from an object.
 java.util.Iterator getAttributeNames()
          Get an iterator over all the attribute names understood by this Accessor.
 void setAttribute(java.lang.String name, java.lang.Object aggregate, java.lang.Object value)
          Set the value of a named attribute within an object.
 

Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String name,
                                     java.lang.Object aggregate)
Retrieves a named attribute from an object.


setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object aggregate,
                         java.lang.Object value)
Set the value of a named attribute within an object.


getAttributeNames

public java.util.Iterator getAttributeNames()
Get an iterator over all the attribute names understood by this Accessor.