public abstract class DefaultSlotAction extends DefaultAction implements IUniqueSlotContainer
Modifier | Constructor and Description |
---|---|
|
DefaultSlotAction() |
protected |
DefaultSlotAction(VariableBindings variableBindings,
java.util.Collection<? extends ISlot> slots)
called from the bind method.
|
Modifier and Type | Method and Description |
---|---|
void |
addSlot(ISlot slot)
Adds a slot
|
protected void |
checkForRequiredSlots(java.lang.String... slotNames)
makes sure the named slots are available and not null.
|
ISlot |
getSlot(java.lang.String slotName)
return the actual named slot.
|
protected UniqueSlotContainer |
getSlotContainer() |
java.util.Collection<? extends ISlot> |
getSlots()
return a duplicate copy of all the slots
|
java.util.Collection<ISlot> |
getSlots(java.util.Collection<ISlot> container) |
boolean |
hasSlot(java.lang.String slotName) |
void |
removeSlot(ISlot slot)
remove a slot
|
bindSlotValues, dispose, fire, resolve, updateSlots
public DefaultSlotAction()
protected DefaultSlotAction(VariableBindings variableBindings, java.util.Collection<? extends ISlot> slots) throws CannotInstantiateException
variableBindings
- slots
- CannotInstantiateException
protected UniqueSlotContainer getSlotContainer()
public ISlot getSlot(java.lang.String slotName)
IUniqueSlotContainer
getSlot
in interface IUniqueSlotContainer
public boolean hasSlot(java.lang.String slotName)
hasSlot
in interface IUniqueSlotContainer
public void addSlot(ISlot slot)
ISlotContainer
addSlot
in interface ISlotContainer
slot
- The feature to be added to the ISlot attributepublic java.util.Collection<? extends ISlot> getSlots()
ISlotContainer
getSlots
in interface ISlotContainer
public java.util.Collection<ISlot> getSlots(java.util.Collection<ISlot> container)
getSlots
in interface ISlotContainer
public void removeSlot(ISlot slot)
ISlotContainer
removeSlot
in interface ISlotContainer
slot
- Description of Parameterprotected void checkForRequiredSlots(java.lang.String... slotNames) throws CannotInstantiateException
slotNames
- CannotInstantiateException