org.objectweb.kilim.model
Class ComponentFactory.RTReference

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

private static class ComponentFactory.RTReference
extends RuntimeSourceImpl1
implements RuntimeAction


Field Summary
private  RuntimeElement target
           
 
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
(package private) ComponentFactory.RTReference(TemplateElementImpl aElement, Component aComponent)
           
 
Method Summary
 void addInterfaceListener(RtCollectionPort aInterface)
          adds a new listener to the value source.
 boolean checkAction(java.util.Stack aStack)
          returns whether an action can be performed without any new constructive action.
 boolean checkValue(java.util.Stack aStack)
          returns whether a value can be obtained without having to create new objects
 void execute()
          executes the method, constructor, setter, getter implementing the RuntimeAction.
 java.lang.Object getEventSourceValue()
          gets the event source value (i.e.
 java.lang.String getLocalName()
          returns the local name of the component element.
 RuntimeElement getTarget()
          returns the target object.
(package private)  java.lang.String getTargetName()
           
 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 aSource)
          sets the event source value (i.e.
(package private)  void setTarget(RuntimeElement aTarget)
           
 
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, 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.RuntimeAction
getEventSourceValue, setEventSourceValue
 

Field Detail

target

private RuntimeElement target
Constructor Detail

ComponentFactory.RTReference

ComponentFactory.RTReference(TemplateElementImpl aElement,
                             Component aComponent)
Method Detail

getTargetName

java.lang.String getTargetName()

getTarget

public RuntimeElement getTarget()
Description copied from interface: RuntimeAction
returns the target object. This method has been introduced to deal with references.

Specified by:
getTarget in interface RuntimeAction
Overrides:
getTarget in class RtComponentElement
See Also:
RuntimeSource.getTarget()

setTarget

void setTarget(RuntimeElement aTarget)

execute

public void execute()
             throws KilimException
Description copied from interface: RuntimeAction
executes the method, constructor, setter, getter implementing the RuntimeAction.

Specified by:
execute in interface RuntimeAction
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.

hasValue

public boolean hasValue()
                 throws KilimException
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
Throws:
KilimException - :
See Also:
org.objectweb.kilim.model.RuntimeSource#checkValue()

checkAction

public boolean checkAction(java.util.Stack aStack)
                    throws KilimException
Description copied from interface: RuntimeAction
returns whether an action can be performed without any new constructive action.

Specified by:
checkAction in interface RuntimeAction
Parameters:
aStack - is the stack of runtime element which are under evaluation (i.e. element in the process of a constructive action).
Returns:
boolean
Throws:
KilimException - :
See Also:
org.objectweb.kilim.model.RuntimeAction#checkAction()

checkValue

public boolean checkValue(java.util.Stack aStack)
                   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:
aStack - : the exclude stack contains objects beiing in the process of being built.
Returns:
boolean
Throws:
KilimException - :
See Also:
org.objectweb.kilim.model.RuntimeAction#checkAction()

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.