|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
Methods inherited from interface org.qi4j.api.property.PropertyInfo |
---|
isComputed, isImmutable, metaInfo, qualifiedName, type |
Method Detail |
---|
T get()
void set(T newValue) throws IllegalArgumentException, IllegalStateException
newValue
- the new value
IllegalArgumentException
- if the value has an invalid value
IllegalStateException
- if the property is immutable or computed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |