|
|||||||||||
| 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.RtComponentProperty
| Field Summary | |
private static java.lang.Object |
UNSET
|
private boolean |
used
|
private java.lang.Object |
value
|
| 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 | |
RtComponentProperty(TemplateElementImpl aElement,
Component aComponent)
The public constructor for RtComponentProperties. |
|
| Method Summary | |
void |
bindProvider(RuntimeSource aSource,
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 |
getEventSourceValue()
Method gets the EventSourceValue. |
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 |
isEventSource()
returns whether the source is an event source.. |
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 |
setEventSourceValue(java.lang.Object aSource)
sets the EventSourceValue. |
void |
setValue(java.lang.Object aValue)
sets the value of a property. |
protected void |
specificBindValue(java.lang.Object aValue)
Method specificBindValue. |
protected java.lang.Object |
specificGetValue()
Method specificGetValue. |
protected void |
specificUnbindValue()
Method specificUnbindValue. |
void |
unbindProvider(RuntimeSource aSource)
unbinds an interface and source value. |
| Methods inherited from class org.objectweb.kilim.model.RtComponentInterface |
addTrigger, bindValue, fireTriggers, getTriggerList, getTriggers, getValue, initializeInstanciation, isModified, removeTrigger, 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 static java.lang.Object UNSET
private boolean used
private java.lang.Object value
| Constructor Detail |
public RtComponentProperty(TemplateElementImpl aElement,
Component aComponent)
aElement - : the template description of the property.aComponent - : the component containing the property.| Method Detail |
public java.lang.String getLocalName()
ComponentElement
getLocalName in interface ComponentElementComponentElement.getLocalName()
public void setValue(java.lang.Object aValue)
throws KilimException
setValue in interface ComponentPropertyaValue - : the value to be set.
KilimException - : generated if the value is illegal (type mismatch, for example).public boolean isEventSource()
RuntimeSource
isEventSource in interface RuntimeSourceisEventSource in class RtComponentInterfaceRuntimeSource.isEventSource()
public java.lang.Object getEventSourceValue()
throws KilimException
RuntimeSource
getEventSourceValue in interface RuntimeSourcegetEventSourceValue in class RtComponentInterfaceKilimExceptionorg.objectweb.kilim.model.RuntimeSource#getEventSource()
public void setEventSourceValue(java.lang.Object aSource)
throws KilimException
RuntimeSource
setEventSourceValue in interface RuntimeSourcesetEventSourceValue in class RtComponentInterfaceKilimExceptionorg.objectweb.kilim.model.RuntimeSource#setEventSource(Object)
public void bindProvider(RuntimeSource aSource,
boolean jReplace)
throws KilimException
ComponentInterface
bindProvider in interface ComponentInterfacebindProvider in class RtComponentInterfaceaSource - : 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 aSource)
throws KilimException
ComponentInterface
unbindProvider in interface ComponentInterfaceunbindProvider in class RtComponentInterfaceaSource - : the source value to be unbound.
KilimException - : generated if aProvider is null or if the interface is not bound to aProvider.RtComponentInterface.unbindProvider(RuntimeSource)
protected java.lang.Object specificGetValue()
throws KilimException
RtComponentInterface
specificGetValue in class RtComponentInterfaceKilimException - :org.objectweb.kilim.model.RuntimeSource#getValue(RuntimeContext)
protected void specificUnbindValue()
throws KilimException
RtComponentInterface
specificUnbindValue in class RtComponentInterfaceKilimException - :ComponentInterface.unbindValue()
protected void specificBindValue(java.lang.Object aValue)
throws KilimException
RtComponentInterface
specificBindValue in class RtComponentInterfaceaValue - :
KilimException - :ComponentInterface.bindValue(Object)public boolean isSingleValuePort()
ComponentInterface
isSingleValuePort in interface ComponentInterfaceorg.objectweb.kilim.model.ComponentInterface#isSingleValueInterface()public boolean isCollectionPort()
ComponentInterface
isCollectionPort in interface ComponentInterfaceorg.objectweb.kilim.model.ComponentInterface#isCollectionInterface()public boolean isProvider()
ComponentInterface
isProvider in interface ComponentInterfaceComponentInterface.isProvider()public boolean isProperty()
ComponentInterface
isProperty in interface ComponentInterfaceComponentInterface.isProperty()public boolean hasValue()
ComponentSource
hasValue in interface ComponentSourceorg.objectweb.kilim.model.RtComponentInterface#checkValue()
public boolean checkValue(java.util.Stack exclude)
throws KilimException
RuntimeSource
checkValue in interface RuntimeSourceexclude - : 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 | ||||||||||