@Persistent
public abstract class AbstractSlot
extends java.lang.Object
Constructor and Description |
---|
AbstractSlot() |
AbstractSlot(java.lang.String name)
Creates a new slot
|
Modifier and Type | Method and Description |
---|---|
abstract void |
clear()
Empties this slot.
|
java.lang.String |
getName() |
abstract SWGObject |
getObject() |
abstract void |
insert(SWGObject swgObj)
Inserts swgObj into this container.
|
abstract boolean |
isFilled() |
abstract void |
remove(SWGObject swgObj)
Removes swgObj from this slot.
|
abstract void |
traverse(SWGObject viewer,
boolean topDown,
boolean recursive,
Traverser traverser)
Traverses over this tree from the perspective of viewer.
|
public AbstractSlot()
public AbstractSlot(java.lang.String name)
name
- public java.lang.String getName()
public abstract boolean isFilled()
public abstract SWGObject getObject()
public abstract void insert(SWGObject swgObj)
swgObj
- the object to insertpublic abstract void remove(SWGObject swgObj)
swgObj
- the object to removepublic abstract void clear()
public abstract void traverse(SWGObject viewer, boolean topDown, boolean recursive, Traverser traverser)
viewer
- the object who is looking into this slot. Only relevant if recursivetopDown
- the direction in which to recurse. Only relevant if recursiverecursive
- true if subobjects should be traversedtraverser
- the object to call as the tree is traversed.