org.qi4j.api.property
Interface StateHolder

All Known Subinterfaces:
EntityStateHolder

public interface StateHolder

This represents the state of a composite (properties).


Nested Class Summary
static interface StateHolder.StateVisitor<ThrowableType extends Throwable>
           
 
Method Summary
<T> Property<T>
getProperty(Method propertyMethod)
          Get a property for a specific accessor method
<T> Property<T>
getProperty(QualifiedName name)
          Get a property for a specific accessor method
<ThrowableType extends Throwable>
void
visitProperties(StateHolder.StateVisitor<ThrowableType> visitor)
           
 

Method Detail

getProperty

<T> Property<T> getProperty(Method propertyMethod)
Get a property for a specific accessor method

Parameters:
propertyMethod - of the property
Returns:
the property

getProperty

<T> Property<T> getProperty(QualifiedName name)
Get a property for a specific accessor method

Parameters:
name - The qualified name of the property
Returns:
the property

visitProperties

<ThrowableType extends Throwable> void visitProperties(StateHolder.StateVisitor<ThrowableType> visitor)
                     throws ThrowableType extends Throwable
Throws:
ThrowableType extends Throwable