|
|||||||||||
| 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.BasicNamedElementImpl
org.objectweb.kilim.description.Port
| Field Summary | |
private Arity |
arity
|
private boolean |
isOffered
|
static Port |
THIS_PORT
a constant associated to the "this" port, a port bound to the Component object |
| Fields inherited from class org.objectweb.kilim.description.BasicNamedElementImpl |
|
| Fields inherited from class org.objectweb.kilim.description.TemplateElementImpl |
|
| Constructor Summary | |
private |
Port()
|
|
Port(java.lang.String aName,
Arity aArity,
int aStatus,
boolean isP,
TemplateDescription aTemplate)
The public constructor for a port. |
| Method Summary | |
Arity |
getArity()
Returns the arity. |
int |
getKind()
returns the element kind. |
boolean |
isOffered()
returns whether the port is offered or not. |
boolean |
isOptional()
|
boolean |
isUnary()
|
void |
setArity(Arity anArity)
Sets the arity. |
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.BasicNamedElementImpl |
getLocalName, getStatus, isEventSource, performsAction, providesValue, setContainingTemplate, toString |
| Methods inherited from class org.objectweb.kilim.description.TemplateElementImpl |
clone, getContainingTemplate, getTemplateDefHierarchy |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.objectweb.kilim.description.TemplateElement |
clone, getContainingTemplate, getTemplateDefHierarchy |
| Field Detail |
public static final Port THIS_PORT
private Arity arity
private boolean isOffered
| Constructor Detail |
public Port(java.lang.String aName,
Arity aArity,
int aStatus,
boolean isP,
TemplateDescription aTemplate)
throws KilimException
aName - : the local name of the port.aArity - : the arity of the port.aStatus - : the status of the port. It should be one of KILIM.PRIVATE, KILIM.PROTECTED, KILIM.PUBLIC.isP - : true if the port is offered, false if not.aTemplate - : the template in which the port is defined.
KilimException - : generated if aName or aTemplate is null, or if aStatus has an illegal value,private Port()
| Method Detail |
public boolean isOffered()
public int getKind()
BasicElement
BasicElement.getKind()
public void setLocalName(java.lang.String aName)
throws KilimException
NamedElement
setLocalName in interface NamedElementsetLocalName in class BasicNamedElementImplKilimExceptionNamedElement.setLocalName(String)
public void setStatus(int aStatus)
throws KilimException
NamedElement
setStatus in interface NamedElementsetStatus in class BasicNamedElementImplKilimExceptionNamedElement.setStatus(int)public boolean isOptional()
isOptional()public boolean isUnary()
isUnary()public Arity getArity()
public void setArity(Arity anArity)
throws KilimException
anArity - The arity to set
KilimException - :
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||