net.java.properties
Interface PropertyI<T>

All Known Subinterfaces:
CollectionPropertyI<T>, FieldProperty<T>, ListPropertyI<T>
All Known Implementing Classes:
CollectionProperty, ListProperty, MapProperty, Property, PropertyBean

public interface PropertyI<T>

The is the base property interface that is to be implemented by all Properties. Note that Property is normally the concrete implementation to extend to create a custom property.


Method Summary
 T get()
          Returns the value of this property.
 Result<T> set(T value)
          Set the value of this property.
 

Method Detail

get

T get()
Returns the value of this property. The base interface makes no assuptions on this value at all. It might or might not be editable without side effects and it might or might not be null.

Returns:
The value of this property.

set

Result<T> set(T value)
Set the value of this property. The base interface makes no assuptions on this value at all. It might or might not be cloned for storage and it might or might not be null.

Parameters:
value - The value.
Returns:
The result of the set. Should default to Result.ok() if not special logic for value checking is made.


Copyright © 2007 MiG InfoCom AB. All Rights Reserved.