|
|||||||||||
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
org.objectweb.kilim.model.RtCollectionPort
Field Summary | |
private static java.lang.Integer |
BIND_TRUE
|
private static java.lang.Integer |
FALSE
|
private java.util.LinkedHashMap |
providers
|
private static java.lang.Integer |
UNBIND_TRUE
|
Fields inherited from class org.objectweb.kilim.model.RtComponentInterface |
fW, pW |
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 | |
RtCollectionPort(Port aPort,
ContainerElement aContainer)
The public constructor of rtCollectionPort. |
Method Summary | |
void |
bindProvider(RuntimeSource aProvider,
boolean jReplace)
binds a new value source to a collection port. |
void |
bindValue(java.lang.Object aValue)
assigns a value to an interface. |
boolean |
checkValue(java.util.Stack exclude)
returns whether a value can be obtained without having to create new objects |
java.util.Iterator |
getBoundProviders()
returns as an iterator the bound value sources. |
java.lang.String |
getLocalName()
returns the local name of the component element. |
java.lang.Object |
getValue()
Method getValue. |
boolean |
hasValue()
returns whether the source has a value. |
boolean |
isCollectionPort()
returns true if the interface is a collection port. |
boolean |
isProperty()
returns true if the interface is a property. |
boolean |
isProvider()
returns true if the interface is a provider (i.e. |
boolean |
isSingleValuePort()
Method isSingleValueInterface returns true if the interface is a single value port. |
void |
setTriggersDone(RuntimeSource aProvider,
int aEKind,
boolean isU)
Triggers associated to collection ports must be performed for each bound source when the getValue() or unbound method is invoked on the source. |
protected void |
specificBindValue(java.lang.Object aValue)
Method specificBindValue. |
protected java.lang.Object |
specificGetValue()
Method specificGetValue. |
protected void |
specificUnbindValue()
Method specificUnbindValue. |
boolean |
triggersDone(RuntimeSource aProvider,
int aEKind)
returns whether the triggers associated to a collection port have been executed for a given source. |
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.RtComponentInterface |
addTrigger, fireTriggers, getEventSourceValue, getTriggerList, getTriggers, initializeInstanciation, isEventSource, isModified, removeTrigger, setEventSourceValue, setTriggersDone, triggersDone |
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.ComponentElement |
getContainingComponent, getContainingElement, getElementDescription, getQualifiedName, getTemplateDefHierarchy |
Methods inherited from interface org.objectweb.kilim.model.RuntimeSource |
addInterfaceListener, getTarget, removeInterfaceListener |
Field Detail |
private static final java.lang.Integer FALSE
private static final java.lang.Integer BIND_TRUE
private static final java.lang.Integer UNBIND_TRUE
private java.util.LinkedHashMap providers
Constructor Detail |
public RtCollectionPort(Port aPort, ContainerElement aContainer)
aPort
- : the corresponding template element.aContainer
- : the container in which the port is declared and defined (is either a RtComponentSlot or a rtComponent.Method Detail |
public boolean isSingleValuePort()
ComponentInterface
org.objectweb.kilim.model.ComponentInterface#isSingleValueInterface()
public boolean isCollectionPort()
ComponentInterface
org.objectweb.kilim.model.ComponentInterface#isCollectionInterface()
public boolean isProvider()
ComponentInterface
ComponentInterface.isProvider()
public boolean isProperty()
ComponentInterface
ComponentInterface.isProperty()
public boolean hasValue()
RuntimeSource
ComponentSource.hasValue()
public boolean checkValue(java.util.Stack exclude) throws KilimException
RuntimeSource
exclude
- : the exclude stack contains objects beiing in the process of being built.
KilimException
- :RuntimeSource.checkValue(Stack)
public java.lang.String getLocalName()
ComponentElement
ComponentElement.getLocalName()
public void setTriggersDone(RuntimeSource aProvider, int aEKind, boolean isU) throws KilimException
aProvider
- : the value source.aEKind
- : the kind of event. The 2 possible values are Trigger.BIND (when getValue is effectively performed) or Trigger.UNBIND
(when unbound is executed).isU
- : is true for update.
KilimException
- : generated if aProvider is null, if no sources are bound to the port, if the source is unknown.public boolean triggersDone(RuntimeSource aProvider, int aEKind) throws KilimException
aProvider
- : the value source.aEKind
- : the kind of event. The 2 possible values are Trigger.BIND (when getValue is effectively performed) or Trigger.UNBIND
(when unbound is executed).
KilimException
- : generated if aProvider is null, if the collection port is empty or if the port is not bound to the source.public void bindProvider(RuntimeSource aProvider, boolean jReplace) throws KilimException
bindProvider
in interface ComponentInterface
bindProvider
in class RtComponentInterface
aProvider
- : the value source.jReplace
- : allows to rebind an already bound source, when true (this parameter is totally stupid !!!! FHO)
KilimException
- : generated when aProvider is null or when aProvider is already bound and jReplace is false.public void unbindProvider(RuntimeSource aProvider) throws KilimException
RtComponentInterface
unbindProvider
in interface ComponentInterface
unbindProvider
in class RtComponentInterface
aProvider
- : the source value to be unbound.
KilimException
- : generated if aProvider is null or if the interface is not bound to aProvider.ComponentInterface.unbindProvider(RuntimeSource)
public java.util.Iterator getBoundProviders()
public void bindValue(java.lang.Object aValue) throws KilimException
ComponentInterface
bindValue
in interface ComponentInterface
bindValue
in class RtComponentInterface
KilimException
org.objectweb.kilim.model.ComponentInterface#bindValue(Object, RuntimeContext)
public void unbindValue() throws KilimException
ComponentInterface
unbindValue
in interface ComponentInterface
unbindValue
in class RtComponentInterface
KilimException
org.objectweb.kilim.model.RuntimeSource#unbindValue(RuntimeContext)
public java.lang.Object getValue() throws KilimException
RuntimeSource
getValue
in interface ComponentSource
getValue
in class RtComponentInterface
KilimException
org.objectweb.kilim.model.RuntimeSource#getValue(RuntimeContext)
protected java.lang.Object specificGetValue() throws KilimException
RtComponentInterface
specificGetValue
in class RtComponentInterface
KilimException
- :org.objectweb.kilim.model.RuntimeSource#getValue(RuntimeContext)
protected void specificBindValue(java.lang.Object aValue) throws KilimException
RtComponentInterface
specificBindValue
in class RtComponentInterface
aValue
- :
KilimException
- :RtComponentInterface.specificBindValue(Object)
protected void specificUnbindValue() throws KilimException
RtComponentInterface
specificUnbindValue
in class RtComponentInterface
KilimException
- :RtComponentInterface.specificUnbindValue()
public void update() throws KilimException
ComponentInterface
update
in interface ComponentInterface
update
in class RtComponentInterface
KilimException
org.objectweb.kilim.model.RtComponentInterface#specificUpdate()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |