|
|||||||||||
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
Field Summary | |
private boolean |
isProvider
|
private boolean |
isTransformer
|
private java.lang.String |
localName
|
private int |
status
|
Fields inherited from class org.objectweb.kilim.description.TemplateElementImpl |
|
Constructor Summary | |
protected |
BasicNamedElementImpl(java.lang.String aName,
int aStatus,
boolean isP,
boolean isT)
This constructor is used internally by the kilim infrastructure. |
protected |
BasicNamedElementImpl(java.lang.String aName,
int aStatus,
boolean isP,
boolean isT,
TemplateDescription aTemplate)
This constructor is used internally by the kilim infrastructure. |
Method Summary | |
private void |
checkStatus(int aStatus)
|
java.lang.String |
getLocalName()
returns the name of the element. |
int |
getStatus()
returns the status of the element. |
boolean |
isEventSource()
indicates whether the element is an event source or not. |
boolean |
performsAction()
Basic elements either provide values or exceute actions that complete the instatiation process This method. |
boolean |
providesValue()
Basic elements either provide values or exceute actions that complete the instatiation process This method. |
void |
setContainingTemplate(TemplateDescription aTemplate)
sets the template in which the element is defined. |
void |
setLocalName(java.lang.String aName)
sets a name to the element. |
void |
setStatus(int aStatus)
sets the element status. |
java.lang.String |
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.BasicElement |
getKind |
Methods inherited from interface org.objectweb.kilim.description.TemplateElement |
clone, getContainingTemplate, getTemplateDefHierarchy |
Field Detail |
private java.lang.String localName
private int status
private boolean isProvider
private boolean isTransformer
Constructor Detail |
protected BasicNamedElementImpl(java.lang.String aName, int aStatus, boolean isP, boolean isT, TemplateDescription aTemplate) throws KilimException
aName
- : the name of the basic element.aStatus
- : an int representing the status : should be one of KILIM.PRIVATE, KILIM.PROTECTED, KILIM.PUBLIC.isP
- :is true when the element provides a value (i.e. act as a provider).isT
- : is true when the element performs an action (i.e. act as a transformer).aTemplate
- : the template containing the element.
KilimException
- : generatyed when the name reference is null, when the template reference is null,
when the status value is illegal.protected BasicNamedElementImpl(java.lang.String aName, int aStatus, boolean isP, boolean isT)
aName
- : the name of the basic element.aStatus
- : an int representing the status : should be one of KILIM.PRIVATE, KILIM.PROTECTED, KILIM.PUBLIC.isP
- :is true when the element provides a value (i.e. act as a provider).isT
- : is true when the element performs an action (i.e. act as a transformer).Method Detail |
public java.lang.String getLocalName()
NamedElement
getLocalName
in interface NamedElement
org.objectweb.kilim.description.TemplateElement#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.org.objectweb.kilim.description.TemplateElement#setLocalName(String)
public int getStatus()
NamedElement
getStatus
in interface NamedElement
org.objectweb.kilim.description.TemplateElement#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.org.objectweb.kilim.description.TemplateElement#setStatus(int)
public boolean providesValue()
BasicElement
providesValue
in interface BasicElement
org.objectweb.kilim.description.TemplateElement#providesValue()
public boolean performsAction()
BasicElement
performsAction
in interface BasicElement
org.objectweb.kilim.description.TemplateElement#performsAction()
public boolean isEventSource()
BasicElement
isEventSource
in interface BasicElement
BasicElement.isEventSource()
public void setContainingTemplate(TemplateDescription aTemplate) throws KilimException
TemplateElement
setContainingTemplate
in interface TemplateElement
setContainingTemplate
in class TemplateElementImpl
KilimException
TemplateElement.setContainingTemplate(TemplateDescription)
public java.lang.String toString()
Object.toString()
private void checkStatus(int aStatus) throws KilimException
KilimException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |