org.objectweb.kilim.model
Class ComponentFactory.RTEventSource

java.lang.Object
  extended byorg.objectweb.kilim.model.RtComponentElement
      extended byorg.objectweb.kilim.model.ComponentFactory.RTEventSource
All Implemented Interfaces:
ComponentElement, RuntimeElement, RuntimeSource
Enclosing class:
ComponentFactory

private static class ComponentFactory.RTEventSource
extends RtComponentElement
implements RuntimeSource


Field Summary
private  boolean gotAValue
           
private  java.lang.Object target
           
 
Fields inherited from class org.objectweb.kilim.model.RtComponentElement
nbComponent, nbElement
 
Constructor Summary
(package private) ComponentFactory.RTEventSource()
           
 
Method Summary
 void addInterfaceListener(RtCollectionPort aInterface)
          adds a new listener to the 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.
 java.lang.Object getValue()
          Method getValue.
 boolean hasValue()
          returns whether the source has a value.
 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 aTarget)
          sets the EventSourceValue.
 
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
getTarget
 

Field Detail

target

private java.lang.Object target

gotAValue

private boolean gotAValue
Constructor Detail

ComponentFactory.RTEventSource

ComponentFactory.RTEventSource()
Method Detail

getLocalName

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

Specified by:
getLocalName in interface ComponentElement
Returns:
String
See Also:
ComponentElement.getLocalName()

setEventSourceValue

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

Specified by:
setEventSourceValue in interface RuntimeSource
Parameters:
aTarget - :

isEventSource

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

Specified by:
isEventSource in interface RuntimeSource
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.

Specified by:
getEventSourceValue in interface RuntimeSource
Returns:
Object
Throws:
KilimException - : the exception is generated when the method is invoked on unbound references or on illegal elements.

getValue

public java.lang.Object getValue()
                          throws KilimException
Description copied from interface: RuntimeSource
Method getValue.

Specified by:
getValue in interface RuntimeSource
Returns:
Object : the reference of the object provided by the source.
Throws:
KilimException - : the exception is generated when the method is invoked on unbound references or on illegal elements.

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.

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.

hasValue

public boolean hasValue()
Description copied from interface: RuntimeSource
returns whether the source has a value. The behaviour depends on the nature of the source. It always returns false when invoked on tagged providers, for example.

Specified by:
hasValue in interface RuntimeSource
Returns:
boolean

checkValue

public boolean checkValue(java.util.Stack exclude)
                   throws KilimException
Description copied from interface: RuntimeSource
returns whether a value can be obtained without having to create new objects

Specified by:
checkValue in interface RuntimeSource
Parameters:
exclude - : the exclude stack contains objects beiing in the process of being built.
Returns:
boolean
Throws:
KilimException - :