de.intarsys.tools.reflect
Class CollectionRelationHandler
java.lang.Object
de.intarsys.tools.reflect.RelationHandlerAdapter
de.intarsys.tools.reflect.CollectionRelationHandler
- All Implemented Interfaces:
- IRelationHandler
public class CollectionRelationHandler
- extends RelationHandlerAdapter
The relation is implemented in a plain java collection.
CollectionRelationHandler
public CollectionRelationHandler()
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
Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.