SettedObject interface. We may just want to roll this into DObject.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3017 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2004-06-03 16:34:07 +00:00
parent dec746b983
commit ae40f1ae0b
@@ -0,0 +1,45 @@
//
// $Id: SettedObject.java,v 1.1 2004/06/03 16:34:07 ray Exp $
package com.threerings.presents.dobj;
/**
* Allows manipulation of DSets in generic ways.
*/
public interface SettedObject
{
/**
* Get the specified set.
*/
public DSet getSet (String name);
/**
* Add the item to the set.
*/
public void addToSet (String setName, DSet.Entry entry);
/**
* Update an item in the set.
*/
public void updateSet (String setName, DSet.Entry entry);
/**
* Remove the item from set.
*/
public void removeFromSet (String setName, Comparable key);
/**
* See {@link DObject#getOid}.
*/
public int getOid ();
/**
* See {@link DObject#addListener}.
*/
public void addListener (ChangeListener listener);
/**
* See {@link DObject#removeListener}.
*/
public void removeListener (ChangeListener listener);
}