org.qi4j.api.property
Interface Property<T>

All Known Implementing Classes:
PropertyWrapper

public interface Property<T>

Properties are declared in Composite interfaces by using this interface. It creates a first-class object for the property from which you can get and set the value, and access any metadata about it. The type of the Property can be one of the following:


Method Summary
 T get()
          Get the value of the property.
 void set(T newValue)
          Set the value of the property
 

Method Detail

get

T get()
Get the value of the property.

Returns:
the value

set

void set(T newValue)
         throws java.lang.IllegalArgumentException,
                java.lang.IllegalStateException
Set the value of the property

Parameters:
newValue - the new value
Throws:
java.lang.IllegalArgumentException - if the value has an invalid value
java.lang.IllegalStateException - if the property is immutable