package com.c2kernel.collection; import com.c2kernel.common.ObjectNotFoundException; import com.c2kernel.entity.C2KLocalObject; import com.c2kernel.lookup.ItemPath; import com.c2kernel.utils.CastorHashMap; /** * @version $Revision: 1.13 $ $Date: 2004/05/14 15:39:39 $ * @author $Author: abranson $ */ public interface Collection extends C2KLocalObject { public static final short EMPTY = -1; public int getCounter(); public void setCounter(int count); public int size(); public void setMembers(CollectionMemberList newMembers); public CollectionMemberList getMembers(); public E addMember(ItemPath itemPath, CastorHashMap props, String classProps) throws MembershipException; public E addMember(ItemPath itemPath) throws MembershipException; public void removeMember(int memberId) throws MembershipException; public E getMember(int memberId) throws ObjectNotFoundException; }