org.objectweb.kilim.model
Class ComponentFactory.RTClassSource

java.lang.Object
  extended byorg.objectweb.kilim.model.RtComponentElement
      extended byorg.objectweb.kilim.model.RtComponentSource
          extended byorg.objectweb.kilim.model.RtComponentInterface
              extended byorg.objectweb.kilim.model.RtComponentProvider
                  extended byorg.objectweb.kilim.model.ComponentFactory.RTClassSource
All Implemented Interfaces:
ComponentElement, ComponentInterface, ComponentSource, RuntimeElement, RuntimeSource
Enclosing class:
ComponentFactory

private static class ComponentFactory.RTClassSource
extends RtComponentProvider


Field Summary
private  boolean gotAValue
           
private  java.lang.Class support
           
 
Fields inherited from class org.objectweb.kilim.model.RtComponentProvider
callStack
 
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
(package private) ComponentFactory.RTClassSource(ClassSource aSource, Component aComponent)
           
 
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
(package private)  java.lang.String getClassName()
           
 boolean hasValue()
          returns whether the source has a value.
 void removeInterfaceListener(RtCollectionPort aInterface)
          removes a listener from the value source.
 void setEventSourceValue(java.lang.Object aValue)
          sets the EventSourceValue.
 java.lang.Object specificGetValue()
          Method specificGetValue.
 
Methods inherited from class org.objectweb.kilim.model.RtComponentProvider
bindProvider, getEventSourceValue, getKind, getLocalName, getSupport, isCollectionPort, isEventSource, isProperty, isProvider, isSingleValuePort, specificBindValue, specificUnbindValue, unbindProvider
 
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
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.ComponentElement
getContainingComponent, getContainingElement, getElementDescription, getQualifiedName, getTemplateDefHierarchy
 
Methods inherited from interface org.objectweb.kilim.model.RuntimeSource
getTarget
 

Field Detail

support

private java.lang.Class support

gotAValue

private boolean gotAValue
Constructor Detail

ComponentFactory.RTClassSource

ComponentFactory.RTClassSource(ClassSource aSource,
                               Component aComponent)
Method Detail

getClassName

java.lang.String getClassName()

specificGetValue

public java.lang.Object specificGetValue()
                                  throws KilimException
Description copied from class: RtComponentInterface
Method specificGetValue.

Specified by:
specificGetValue in class RtComponentInterface
Returns:
Object
Throws:
KilimException - :

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)

setEventSourceValue

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

Specified by:
setEventSourceValue in interface RuntimeSource
Overrides:
setEventSourceValue in class RtComponentProvider
Throws:
KilimException
See Also:
org.objectweb.kilim.model.RuntimeSource#setEventSource(Object)

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.

Returns:
boolean
See Also:
org.objectweb.kilim.model.ComponentSource#checkValue()

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

Parameters:
exclude - : the exclude stack contains objects beiing in the process of being built.
Returns:
boolean
Throws:
KilimException - :