|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mit.sketch.system.Holder
This class is used in the template class. It holds a type of BBItem and possibly a pointer to an instance of that item. It is used as a type of "promise", saying that eventually we must fill in the holder with the item of the specified type.
Created: Thu Jan 17 15:42:00 2002
Copyright: Copyright (C) 2002 by MIT. All rights reserved.
| Method Summary | |
void |
bind(BBItem item)
Set the BBItem that this holder points to. |
boolean |
canHold(BBItem item)
This checks if it is valid to bind the given BBItem to this holder. |
protected Object |
clone()
|
BBItem |
getBBItem()
|
BBItemType |
getType()
|
boolean |
isBound()
This holder is unbound if the item has not been set yet. |
void |
unbind()
Stop refering to the BBItem that was previously referred to. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public BBItemType getType()
public BBItem getBBItem()
public void bind(BBItem item)
public void unbind()
public boolean isBound()
public boolean canHold(BBItem item)
protected Object clone()
clone in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||