package com.c2kernel.collection; import java.util.Iterator; import com.c2kernel.collection.gui.model.AggregationVertexOutlineCreator; import com.c2kernel.graph.model.*; import com.c2kernel.utils.*; /** * @version $Revision: 1.59 $ $Date: 2004/08/10 07:56:08 $ * @author $Author: abranson $ */ abstract public class Aggregation extends Parent2ChildCollection { protected GraphModel mLayout = new GraphModel(new AggregationVertexOutlineCreator()); private final TypeNameAndConstructionInfo[] mVertexTypeNameAndConstructionInfo = { new TypeNameAndConstructionInfo(Language.translate("Slot"), "AggregationMember") }; public Aggregation() { setName("Aggregation"); mMembers = new CollectionMemberList(); } public GraphModel getLayout() { return mLayout; } public void setLayout(GraphModel layout) { mLayout = layout; } public TypeNameAndConstructionInfo[] getVertexTypeNameAndConstructionInfo() { return mVertexTypeNameAndConstructionInfo; } public boolean exists(int entityKey) { for (int i=0; i