// // $Id: TestObject.dobj,v 1.5 2001/11/08 02:07:36 mdb Exp $ package com.threerings.presents.server; import com.threerings.presents.dobj.*; /** * I use this to test until I get the actual DObject generation script * working. */ public class TestObject extends DObject { public static final String FOO = "foo"; public static final String BAR = "bar"; public static final String LIST = "list"; public int foo; public String bar; public OidList list = new OidList(); public void setFoo (int foo) { requestAttributeChange(FOO, new Integer(foo)); } public void setBar (String bar) { requestAttributeChange(BAR, bar); } /** * Requests that the specified oid be added to the * list oid list. */ public void addToList (int oid) { requestOidAdd(LIST, oid); } /** * Requests that the specified oid be removed from the * list oid list. */ public void removeFromList (int oid) { requestOidRemove(LIST, oid); } protected void toString (StringBuffer buf) { super.toString(buf); buf.append(", foo=").append(foo); buf.append(", bar=").append(bar); buf.append(", list=").append(list); } }