|
|||||||||||
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.RtComponentSource
org.objectweb.kilim.model.RtComponentInterface
Field Summary | |
private java.util.List |
bTriggers
|
private boolean |
bTriggersDone
|
(package private) java.io.FileWriter |
fW
|
private boolean |
isModified
|
(package private) java.io.PrintWriter |
pW
|
private java.util.List |
uTriggers
|
private boolean |
uTriggersDone
|
Fields inherited from class org.objectweb.kilim.model.RtComponentSource |
knownValues, mapper, mappingContext, svpStack |
Fields inherited from class org.objectweb.kilim.model.RtComponentElement |
nbComponent, nbElement |
Constructor Summary | |
protected |
RtComponentInterface(TemplateElementImpl aElement,
ContainerElement aComponent)
The public constructor of RtComponentInterface. |
Method Summary | |
void |
addTrigger(RuntimeTrigger aTrigger)
adds a new trigger to the interface. |
abstract void |
bindProvider(RuntimeSource aProvider,
boolean jReplace)
binds an interface to a runtime source. |
void |
bindValue(java.lang.Object aValue)
assigns a value to an interface. |
protected void |
fireTriggers(int eventKind,
java.lang.Object resultValue)
|
java.lang.Object |
getEventSourceValue()
Method gets the EventSourceValue. |
java.util.List |
getTriggerList(int aEventKind)
returns the ordered list of the triggers associated to an interface. |
java.util.Iterator |
getTriggers(int aEventKind)
returns the as an iterator the triggers associated to an interface. |
java.lang.Object |
getValue()
Method getValue. |
protected void |
initializeInstanciation()
|
boolean |
isEventSource()
returns whether the source is an event source.. |
boolean |
isModified()
returns whether the value has been changed since the last execution of bind triggers associated to the interface. |
void |
removeTrigger(RuntimeTrigger aTrigger)
removes a trigger from an interface. |
void |
setEventSourceValue(java.lang.Object aValue)
sets the EventSourceValue. |
void |
setTriggersDone(int aKind,
boolean done)
sets a flag indicating whether the triggers associated to a given kind of event have been performed or not. |
protected abstract void |
specificBindValue(java.lang.Object aValue)
Method specificBindValue. |
protected abstract java.lang.Object |
specificGetValue()
Method specificGetValue. |
protected abstract void |
specificUnbindValue()
Method specificUnbindValue. |
boolean |
triggersDone(int aKind)
returns whether the triggers associated to a given kind of event have been executed or not. |
abstract void |
unbindProvider(RuntimeSource aProvider)
unbinds an interface from a runtime source. |
void |
unbindValue()
sets the value of an interface to null. |
void |
update()
reexecutes all triggers associated to the interface. |
Methods inherited from class org.objectweb.kilim.model.RtComponentSource |
addInterfaceListener, evaluationPerformed, getCurrentSVP, getInterfaceListeners, removeInterfaceListener |
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.ComponentInterface |
isCollectionPort, isProperty, isProvider, isSingleValuePort |
Methods inherited from interface org.objectweb.kilim.model.ComponentSource |
hasValue |
Methods inherited from interface org.objectweb.kilim.model.ComponentElement |
getContainingComponent, getContainingElement, getElementDescription, getLocalName, getQualifiedName, getTemplateDefHierarchy |
Methods inherited from interface org.objectweb.kilim.model.RuntimeSource |
addInterfaceListener, checkValue, getTarget, hasValue, removeInterfaceListener |
Field Detail |
private java.util.List bTriggers
private java.util.List uTriggers
private boolean bTriggersDone
private boolean uTriggersDone
private boolean isModified
java.io.PrintWriter pW
ComponentSource.getValue()
java.io.FileWriter fW
Constructor Detail |
protected RtComponentInterface(TemplateElementImpl aElement, ContainerElement aComponent)
aElement
- : the template description of the interface.aComponent
- :the container element in which the interface is defined.Method Detail |
public boolean isModified() throws KilimException
isModified
in interface ComponentInterface
KilimException
- :public boolean triggersDone(int aKind) throws KilimException
aKind
- : the kind of event. It is either Trigger.BIND or Trigger.UNBIND.
KilimException
- : generated if aKind has an illegal value.public void setTriggersDone(int aKind, boolean done) throws KilimException
aKind
- : the kind of event. It is either Trigger.BIND or Trigger.UNBIND.done
- : true if the triggersz have been performed.
KilimException
- : generated if aKind has an illegal value.public abstract void bindProvider(RuntimeSource aProvider, boolean jReplace) throws KilimException
bindProvider
in interface ComponentInterface
aProvider
- : the value source to be bound.jReplace
- : true if replacement is allowed.
KilimException
- : generated if aProvider is null, if the interface is already bound and jReplace is false.public abstract void unbindProvider(RuntimeSource aProvider) throws KilimException
unbindProvider
in interface ComponentInterface
aProvider
- : the source value to be unbound.
KilimException
- : generated if aProvider is null or if the interface is not bound to aProvider.public void addTrigger(RuntimeTrigger aTrigger)
aTrigger
- : the trigger to be added.public void removeTrigger(RuntimeTrigger aTrigger)
aTrigger
- : the trigger to be added.public java.util.List getTriggerList(int aEventKind)
aEventKind
- : the kind of trigger event. It should be one Trigger.BIND or Trigger.UNBIND.
public java.util.Iterator getTriggers(int aEventKind)
aEventKind
- : the kind of trigger event. It should be one Trigger.BIND or Trigger.UNBIND.
public boolean isEventSource()
RuntimeSource
isEventSource
in interface RuntimeSource
RuntimeSource.isEventSource()
public void setEventSourceValue(java.lang.Object aValue) throws KilimException
RuntimeSource
setEventSourceValue
in interface RuntimeSource
aValue
- :
KilimException
- : the exception is generated when the method is invoked on unbound references
or on illegal elements.org.objectweb.kilim.model.RuntimeSource#setEventSource(Object)
public java.lang.Object getEventSourceValue() throws KilimException
RuntimeSource
getEventSourceValue
in interface RuntimeSource
KilimException
- : the exception is generated when the method is invoked on unbound references
or on illegal elements.org.objectweb.kilim.model.RuntimeSource#getEventSource()
public java.lang.Object getValue() throws KilimException
RuntimeSource
getValue
in interface ComponentSource
KilimException
- : the exception is generated when the method is invoked on unbound references or nary ports.public void unbindValue() throws KilimException
ComponentInterface
unbindValue
in interface ComponentInterface
KilimException
- :ComponentInterface.unbindValue()
public void bindValue(java.lang.Object aValue) throws KilimException
ComponentInterface
bindValue
in interface ComponentInterface
aValue
- : the value to be assigned to the interface.
KilimException
- : generated when applied to a providerComponentInterface.bindValue(Object)
public void update() throws KilimException
ComponentInterface
update
in interface ComponentInterface
KilimException
- :ComponentInterface.bindValue(Object)
protected void fireTriggers(int eventKind, java.lang.Object resultValue) throws KilimException
KilimException
protected void initializeInstanciation() throws KilimException
KilimException
protected abstract java.lang.Object specificGetValue() throws KilimException
KilimException
- :protected abstract void specificBindValue(java.lang.Object aValue) throws KilimException
aValue
- :
KilimException
- :protected abstract void specificUnbindValue() throws KilimException
KilimException
- :
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |