|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.kilim.description.TemplateElementImpl
org.objectweb.kilim.description.Slot
Field Summary | |
private static java.lang.String[][] |
msgTexts
|
private java.util.List |
ports
|
private java.lang.String |
slotName
|
private int |
status
|
Fields inherited from class org.objectweb.kilim.description.TemplateElementImpl |
|
Constructor Summary | |
Slot(java.lang.String aSlotName,
int aStatus,
TemplateDescription aTemplate)
a public constructor for slots. |
Method Summary | |
void |
addPort(Port aPort)
Method addPort adds a new port in the slot. |
private void |
checkStatus(int aStatus)
Method checkStatus. |
java.lang.String |
getLocalName()
returns the name of the element. |
java.util.Iterator |
getPorts()
Method getPorts returns as an iterator the ports defined in the slot. |
int |
getStatus()
returns the status of the element. |
private java.lang.String |
msgSuffix1()
|
void |
removePort(Port aPort)
Method removePort. |
void |
setLocalName(java.lang.String aName)
sets a name to the element. |
void |
setStatus(int aStatus)
sets the element status. |
Methods inherited from class org.objectweb.kilim.description.TemplateElementImpl |
clone, getContainingTemplate, getTemplateDefHierarchy, setContainingTemplate |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.kilim.description.TemplateElement |
clone, getContainingTemplate, getTemplateDefHierarchy, setContainingTemplate |
Field Detail |
private static java.lang.String[][] msgTexts
private java.lang.String slotName
private int status
private java.util.List ports
Constructor Detail |
public Slot(java.lang.String aSlotName, int aStatus, TemplateDescription aTemplate) throws KilimException
aSlotName
- : the slot nameaStatus
- : the status of the slot. It should be one KILIM.PRIVATE, KILIM.PROTECTED, KILIM.PUBLIC.aTemplate
- : the template in which the slot is defined.
KilimException
- : generated if aSlotName or aTemplate is null or if aStatus has an invalid value.Method Detail |
public java.lang.String getLocalName()
NamedElement
getLocalName
in interface NamedElement
NamedElement.getLocalName()
public void setLocalName(java.lang.String aName) throws KilimException
NamedElement
setLocalName
in interface NamedElement
aName
- : the name to be set
KilimException
- : generated when aName is null.NamedElement.setLocalName(String)
public int getStatus()
NamedElement
getStatus
in interface NamedElement
NamedElement.getStatus()
public void setStatus(int aStatus) throws KilimException
NamedElement
setStatus
in interface NamedElement
aStatus
- : The value must be one of KILIM.PRIVATE, KILIM.PROTECTED, KILIM.PUBLIC.
KilimException
- generated if the value for aStatus is not valid.NamedElement.setStatus(int)
private void checkStatus(int aStatus) throws KilimException
aStatus
-
KilimException
public java.util.Iterator getPorts()
public void addPort(Port aPort) throws KilimException
aPort
- : the port to be added.
KilimException
- : generated if aPort is null or if the slot already contains aPort.public void removePort(Port aPort) throws KilimException
aPort
- : the port to be removed.
KilimException
- : generated if aPort is null or if no port have been defined in the slot.private java.lang.String msgSuffix1()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |