|
|||||||||||
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.RtSingleValuePort
Field Summary | |
private boolean |
firstCall
|
private boolean |
gotAValue
|
private boolean |
msgDisplayed
|
private int |
nbBound
|
private RuntimeSource |
provider
|
private java.lang.Object |
resultValue
|
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 | |
RtSingleValuePort(Port aPort,
ContainerElement aContainer)
The public constructor for run time descriptors of single value ports. |
Method Summary | |
void |
bindProvider(RuntimeSource aProvider,
boolean jReplace)
binds an interface to a value source. |
boolean |
checkValue(java.util.Stack exclude)
returns whether a value can be obtained without having to create new objects |
java.lang.Object |
getBufferedValue()
Method getBufferedValue : returns the current buffered value. |
java.lang.String |
getLocalName()
returns the local name of the component element. |
boolean |
hasValue()
returns whether a value has been evaluated and stored in the source. |
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. |
protected void |
specificBindValue(java.lang.Object aValue)
Method specificBindValue. |
protected java.lang.Object |
specificGetValue()
Method specificGetValue. |
protected void |
specificUnbindValue()
Method specificUnbindValue. |
void |
unbindProvider(RuntimeSource aProvider)
unbinds an interface and source value. |
Methods inherited from class org.objectweb.kilim.model.RtComponentInterface |
addTrigger, bindValue, fireTriggers, getEventSourceValue, getTriggerList, getTriggers, getValue, initializeInstanciation, isEventSource, isModified, removeTrigger, setEventSourceValue, setTriggersDone, triggersDone, unbindValue, update |
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 |
bindValue, isModified, unbindValue, update |
Methods inherited from interface org.objectweb.kilim.model.ComponentSource |
getValue |
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 RuntimeSource provider
private java.lang.Object resultValue
private boolean gotAValue
private boolean firstCall
private int nbBound
private boolean msgDisplayed
Constructor Detail |
public RtSingleValuePort(Port aPort, ContainerElement aContainer)
aPort
- : the template port descriptoraContainer
- : either the containing component or slotMethod Detail |
public boolean hasValue()
ComponentSource
hasValue
in interface ComponentSource
RuntimeSource.hasValue()
public java.lang.Object getBufferedValue()
public boolean isSingleValuePort()
ComponentInterface
isSingleValuePort
in interface ComponentInterface
org.objectweb.kilim.model.ComponentInterface#isSingleValueInterface()
public boolean isCollectionPort()
ComponentInterface
isCollectionPort
in interface ComponentInterface
org.objectweb.kilim.model.ComponentInterface#isCollectionInterface()
public boolean isProvider()
ComponentInterface
isProvider
in interface ComponentInterface
ComponentInterface.isProvider()
public boolean isProperty()
ComponentInterface
isProperty
in interface ComponentInterface
ComponentInterface.isProperty()
public java.lang.String getLocalName()
ComponentElement
getLocalName
in interface ComponentElement
ComponentElement.getLocalName()
public void bindProvider(RuntimeSource aProvider, boolean jReplace) throws KilimException
ComponentInterface
bindProvider
in interface ComponentInterface
bindProvider
in class RtComponentInterface
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.RtComponentInterface.bindProvider(RuntimeSource, boolean)
public void unbindProvider(RuntimeSource aProvider) throws KilimException
ComponentInterface
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)
protected java.lang.Object specificGetValue() throws KilimException
RtComponentInterface
specificGetValue
in class RtComponentInterface
KilimException
- :RuntimeSource.getValue()
protected void specificBindValue(java.lang.Object aValue) throws KilimException
RtComponentInterface
specificBindValue
in class RtComponentInterface
aValue
- :
KilimException
- :org.objectweb.kilim.model.ComponentInterface#bindValue(Object, RuntimeContext)
protected void specificUnbindValue() throws KilimException
RtComponentInterface
specificUnbindValue
in class RtComponentInterface
KilimException
- :RtComponentInterface.specificUnbindValue()
public boolean checkValue(java.util.Stack exclude) throws KilimException
RuntimeSource
checkValue
in interface RuntimeSource
exclude
- : the exclude stack contains objects beiing in the process of being built.
KilimException
- :RuntimeSource.checkValue(Stack)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |