intarsys runtime library

de.intarsys.tools.reflect
Class CollectionRelationHandler

java.lang.Object
  extended by de.intarsys.tools.reflect.RelationHandlerAdapter
      extended by de.intarsys.tools.reflect.CollectionRelationHandler
All Implemented Interfaces:
IRelationHandler

public class CollectionRelationHandler
extends RelationHandlerAdapter

The relation is implemented in a plain java collection.


Constructor Summary
CollectionRelationHandler()
           
 
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.
 
Methods inherited from class de.intarsys.tools.reflect.RelationHandlerAdapter
update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionRelationHandler

public CollectionRelationHandler()
Method Detail

get

public Object[] get(Object owner)
Description copied from interface: IRelationHandler
The objects associated with owner.

Specified by:
get in interface IRelationHandler
Overrides:
get in class RelationHandlerAdapter
Returns:
The objects associated with owner.

insert

public Object insert(Object owner,
                     Object value)
Description copied from interface: IRelationHandler
Add a new object to the association in owner.

Specified by:
insert in interface IRelationHandler
Overrides:
insert in class RelationHandlerAdapter
Returns:
The object inserted

remove

public Object remove(Object owner,
                     Object value)
Description copied from interface: IRelationHandler
Remove an object from the association in owner.

Specified by:
remove in interface IRelationHandler
Overrides:
remove in class RelationHandlerAdapter
Returns:
The object removed

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.