|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.kilim.model.RtComponentElement
org.objectweb.kilim.model.RtComponentSlot
Field Summary | |
private SlotFactory |
factory
|
private java.util.List |
interfaces
|
private boolean |
isInitialized
|
private java.util.List |
plugIns
|
Fields inherited from class org.objectweb.kilim.model.RtComponentElement |
nbComponent, nbElement |
Constructor Summary | |
RtComponentSlot(Slot aSlot,
Component aComponent,
SlotFactory aFactory)
The public constructor for RtComponentSlots |
Method Summary | |
void |
addInterface(ComponentInterface aInterface)
adds an Interface.in the slot. |
Factory |
getFactory()
returns the factory used to create the container. |
ComponentInterface |
getInterface(java.lang.String aName)
returns the local interface identified by its local name. |
java.util.Iterator |
getInterfaces()
returns as an interator the interfaces known inthe slot. |
java.lang.String |
getLocalName()
returns the local name of the component element. |
java.util.Iterator |
getPlugIns()
returns as an iterator the components plugged in the slot.. |
boolean |
isComponent()
returns true if the container is a component. |
boolean |
isInitialized()
returns true when the container is in the "initialized" state or not. |
boolean |
isSlot()
returns true if the container is a slot. |
void |
plug(Component aComponent)
plugs a component in the slot. |
void |
removeInterface(ComponentInterface aInterface)
removes an interface. |
void |
setInitialized()
sets the container in the"initialized" state. |
void |
unplug(Component aComponent)
unplugs a component from the slot. |
Methods inherited from class org.objectweb.kilim.model.RtComponentElement |
containsElement, getContainingComponent, getContainingElement, getElement, getElementDescription, getNbComponent, getNbElement, getQualifiedName, getTarget, getTemplateDefHierarchy, removeElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.kilim.model.ComponentElement |
getContainingComponent, getContainingElement, getElementDescription, getQualifiedName, getTemplateDefHierarchy |
Field Detail |
private SlotFactory factory
private boolean isInitialized
private java.util.List interfaces
private java.util.List plugIns
Constructor Detail |
public RtComponentSlot(Slot aSlot, Component aComponent, SlotFactory aFactory)
aSlot
- : the slot template descriptionaComponent
- : the component containing the slotaFactory
- : the slot factory.Method Detail |
public boolean isComponent()
ContainerElement
isComponent
in interface ContainerElement
ContainerElement.isComponent()
public boolean isSlot()
ContainerElement
isSlot
in interface ContainerElement
ContainerElement.isSlot()
public Factory getFactory()
ContainerElement
getFactory
in interface ContainerElement
ContainerElement.getFactory()
public boolean isInitialized()
ContainerElement
isInitialized
in interface ContainerElement
ContainerElement.isInitialized()
public void setInitialized()
ContainerElement
setInitialized
in interface ContainerElement
org.objectweb.kilim.model.Component#setInitialized(boolean)
public java.lang.String getLocalName()
ComponentElement
getLocalName
in interface ComponentElement
ComponentElement.getLocalName()
public void addInterface(ComponentInterface aInterface) throws KilimException
addInterface
in interface ContainerElement
aInterface
- : the interface to be added.
KilimException
- : generated if aInterface is null or is already present in the slot.public void removeInterface(ComponentInterface aInterface) throws KilimException
removeInterface
in interface ContainerElement
aInterface
- : the interface to be removed.
KilimException
- : generated if aInterface is null or is unknown.public java.util.Iterator getInterfaces()
getInterfaces
in interface ContainerElement
public ComponentInterface getInterface(java.lang.String aName) throws KilimException
getInterface
in interface ContainerElement
aName
- : the local name of the interface.
KilimException
- : generated if aName is null or if the slot does not contain an interface whose name is aName.public java.util.Iterator getPlugIns()
getPlugIns
in interface ComponentSlot
public void plug(Component aComponent) throws KilimException
plug
in interface ComponentSlot
aComponent
- : the component to be plugged.
KilimException
- : generated if aComponent is null or is already plugged in the slot.public void unplug(Component aComponent) throws KilimException
unplug
in interface ComponentSlot
aComponent
- : the component to be removed.
KilimException
- : generated if aComponent is null or is not plugged in the slot.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |