From 612739b1dc0c78d45c0e6be995c094d1f284d3f6 Mon Sep 17 00:00:00 2001 From: abranson Date: Tue, 13 Mar 2012 15:47:58 +0100 Subject: addMember methods return new CollectionmMember --- source/com/c2kernel/collection/AggregationInstance.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/com/c2kernel/collection/AggregationInstance.java') diff --git a/source/com/c2kernel/collection/AggregationInstance.java b/source/com/c2kernel/collection/AggregationInstance.java index 2eca928..47e7c41 100644 --- a/source/com/c2kernel/collection/AggregationInstance.java +++ b/source/com/c2kernel/collection/AggregationInstance.java @@ -23,23 +23,23 @@ public class AggregationInstance extends Aggregation @Override - public void addMember(int entityKey, CastorHashMap props, String classProps) + public AggregationMember addMember(int entityKey, CastorHashMap props, String classProps) throws MembershipException { if( entityKey!=-1 && exists(entityKey)) throw new MembershipException(entityKey+" already exists in this collection."); else - super.addMember(entityKey, props, classProps); + return super.addMember(entityKey, props, classProps); } @Override - public void addMember(int entityKey, CastorHashMap props, String classProps, GraphPoint location, int w, int h) + public AggregationMember addMember(int entityKey, CastorHashMap props, String classProps, GraphPoint location, int w, int h) throws MembershipException { if( entityKey!=-1 && exists(entityKey)) throw new MembershipException(entityKey+" already exists in this collection."); else - super.addMember(entityKey, props, classProps, location, w, h); + return super.addMember(entityKey, props, classProps, location, w, h); } } -- cgit v1.2.3