org.objectweb.kilim.model
Class RtComponentSource

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

public abstract class RtComponentSource
extends RtComponentElement
implements RuntimeSource

Author:
horn

Field Summary
protected static java.util.HashMap knownValues
           
protected  Mapper mapper
           
protected  MappingContext mappingContext
           
private  java.util.List nAryListeners
           
protected static java.util.Stack svpStack
           
 
Fields inherited from class org.objectweb.kilim.model.RtComponentElement
nbComponent, nbElement
 
Constructor Summary
protected RtComponentSource(TemplateElementImpl aElement, ContainerElement aComponent)
           
 
Method Summary
 void addInterfaceListener(RtCollectionPort aInterface)
          adds a new listener to the value source.
static boolean evaluationPerformed(RtSingleValuePort aPort)
          Method evaluationPerformed.
static RtSingleValuePort getCurrentSVP()
          Method getCurrentSVP.
 java.util.Iterator getInterfaceListeners()
          returns as an iterator the interface listeners associated to the source.
 void removeInterfaceListener(RtCollectionPort aInterface)
          removes a listener from the value source.
 
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, getEventSourceValue, getTarget, getValue, hasValue, isEventSource, setEventSourceValue
 
Methods inherited from interface org.objectweb.kilim.model.ComponentElement
getLocalName
 

Field Detail

svpStack

protected static java.util.Stack svpStack

knownValues

protected static java.util.HashMap knownValues

mapper

protected Mapper mapper

mappingContext

protected MappingContext mappingContext

nAryListeners

private java.util.List nAryListeners
Constructor Detail

RtComponentSource

protected RtComponentSource(TemplateElementImpl aElement,
                            ContainerElement aComponent)
Method Detail

getCurrentSVP

public static RtSingleValuePort getCurrentSVP()
Method getCurrentSVP.

Returns:
RtSingleValuePort

evaluationPerformed

public static boolean evaluationPerformed(RtSingleValuePort aPort)
Method evaluationPerformed.

Parameters:
aPort - : a single value port.
Returns:
boolean : the value is true if the single value port has already been evaluated. False otherwise.

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
Parameters:
aInterface - : the collection port to be added to the list of listeners.
Throws:
KilimException - : the exception is generated when the method is invoked on unbound references or on illegal elements.
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
Parameters:
aInterface - : the collection port to be removed from the list of listeners.
Throws:
KilimException - : the exception is generated when the method is invoked on unbound references or on illegal elements.
See Also:
org.objectweb.kilim.model.RuntimeSource#removeInterfaceListener(RtCollectionInterface)

getInterfaceListeners

public java.util.Iterator getInterfaceListeners()
returns as an iterator the interface listeners associated to the source.

Returns:
Iterator