intarsys runtime library

de.intarsys.tools.reflect
Interface IRelationHandler

All Known Implementing Classes:
CollectionRelationHandler, GenericRelationHandler, MapRelationHandler, ReflectionRelationHandler, RelationHandlerAdapter

public interface IRelationHandler

An object that can manage a relationship from an owner to a collection of associated components. This is quite useful for generic implementation of "list viewer" ui interface components.


Method Summary
 Object[] get(Object owner)
          The objects associated with owner.
 Object insert(Object owner, Object value)
          Add a new object to the association in owner.
 Object remove(Object owner, Object value)
          Remove an object from the association in owner.
 Object update(Object owner, Object value, Object newValue)
          Update value in the association for owner to newValue
 

Method Detail

get

Object[] get(Object owner)
The objects associated with owner.

Parameters:
owner -
Returns:
The objects associated with owner.

insert

Object insert(Object owner,
              Object value)
Add a new object to the association in owner.

Parameters:
owner -
value -
Returns:
The object inserted

remove

Object remove(Object owner,
              Object value)
Remove an object from the association in owner.

Parameters:
owner -
value -
Returns:
The object removed

update

Object update(Object owner,
              Object value,
              Object newValue)
Update value in the association for owner to newValue

Parameters:
owner -
value -
newValue -
Returns:
The newly associated object

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.