org.qi4j.api.property
Interface StateHolder

All Known Subinterfaces:
AssociationStateHolder

public interface StateHolder

This represents the state of a composite (properties).


Method Summary
 java.lang.Iterable<? extends Property<?>> properties()
           
<T> Property<T>
propertyFor(java.lang.reflect.AccessibleObject accessor)
          Get a property for a specific accessor
 

Method Detail

propertyFor

<T> Property<T> propertyFor(java.lang.reflect.AccessibleObject accessor)
                        throws java.lang.IllegalArgumentException
Get a property for a specific accessor

Parameters:
accessor - of the property
Returns:
the property
Throws:
java.lang.IllegalArgumentException - if no property for given accessor exists

properties

java.lang.Iterable<? extends Property<?>> properties()