org.objectweb.kilim.model
Class RuntimeSourceImpl1

java.lang.Object
  extended byorg.objectweb.kilim.model.RtComponentElement
      extended byorg.objectweb.kilim.model.RtComponentSource
          extended byorg.objectweb.kilim.model.RuntimeSourceImpl1
All Implemented Interfaces:
ComponentElement, RuntimeElement, RuntimeSource
Direct Known Subclasses:
ComponentFactory.RTArray, ComponentFactory.RTReference

abstract class RuntimeSourceImpl1
extends RtComponentSource

This is a base for all classes that implement runtime sources that do not support event sources and inputs (i.e. array, class source, null source, reference).

Author:
horn

Field Summary
 
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
RuntimeSourceImpl1(TemplateElementImpl aElement, Component aComponent)
           
 
Method Summary
 void addInterfaceListener(RtCollectionPort aInterface)
          adds a new listener to the value source.
 java.lang.Object getEventSourceValue()
          Method gets the EventSourceValue.
 java.lang.String getLocalName()
          returns the local name of the component element.
 boolean isEventSource()
          returns whether the source is an event source..
 void removeInterfaceListener(RtCollectionPort aInterface)
          removes a listener from the value source.
 void setEventSourceValue(java.lang.Object aSource)
          sets the EventSourceValue.
 
Methods inherited from class org.objectweb.kilim.model.RtComponentSource
evaluationPerformed, getCurrentSVP, getInterfaceListeners
 
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.RuntimeSource
checkValue, getTarget, getValue, hasValue
 

Constructor Detail

RuntimeSourceImpl1

public RuntimeSourceImpl1(TemplateElementImpl aElement,
                          Component aComponent)
Method Detail

getLocalName

public java.lang.String getLocalName()
Description copied from interface: ComponentElement
returns the local name of the component element.

Returns:
String
See Also:
ComponentElement.getLocalName()

addInterfaceListener

public void addInterfaceListener(RtCollectionPort aInterface)
                          throws KilimException
Description copied from interface: RuntimeSource
adds a new listener to the value source.

Specified by:
addInterfaceListener in interface RuntimeSource
Overrides:
addInterfaceListener in class RtComponentSource
Throws:
KilimException
See Also:
org.objectweb.kilim.model.RuntimeSource#addInterfaceListener(RtCollectionInterface)

removeInterfaceListener

public void removeInterfaceListener(RtCollectionPort aInterface)
                             throws KilimException
Description copied from interface: RuntimeSource
removes a listener from the value source.

Specified by:
removeInterfaceListener in interface RuntimeSource
Overrides:
removeInterfaceListener in class RtComponentSource
Throws:
KilimException
See Also:
org.objectweb.kilim.model.RuntimeSource#removeInterfaceListener(RtCollectionInterface)

isEventSource

public boolean isEventSource()
Description copied from interface: RuntimeSource
returns whether the source is an event source..

Returns:
boolean : is true when the source is the current event source.

getEventSourceValue

public java.lang.Object getEventSourceValue()
                                     throws KilimException
Description copied from interface: RuntimeSource
Method gets the EventSourceValue.

Returns:
Object
Throws:
KilimException - : the exception is generated when the method is invoked on unbound references or on illegal elements.

setEventSourceValue

public void setEventSourceValue(java.lang.Object aSource)
                         throws KilimException
Description copied from interface: RuntimeSource
sets the EventSourceValue.

Parameters:
aSource - :
Throws:
KilimException - : the exception is generated when the method is invoked on unbound references or on illegal elements.