org.objectweb.kilim.model
Class ComponentFactory.RTArray

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.RTArray
All Implemented Interfaces:
ComponentElement, RuntimeElement, RuntimeSource
Enclosing class:
ComponentFactory

private static class ComponentFactory.RTArray
extends RuntimeSourceImpl1


Field Summary
private  RuntimeSource[] arrayElements
           
private  java.lang.String typeName
           
 
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.RTArray(ArraySource aArray, Component aComponent, RuntimeSource[] elements, java.lang.String aTypeName)
           
 
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 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
getTarget
 

Field Detail

arrayElements

private RuntimeSource[] arrayElements

typeName

private java.lang.String typeName
Constructor Detail

ComponentFactory.RTArray

ComponentFactory.RTArray(ArraySource aArray,
                         Component aComponent,
                         RuntimeSource[] elements,
                         java.lang.String aTypeName)
Method Detail

getValue

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

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.
See Also:
RuntimeSource.getValue()

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.

Returns:
boolean
Throws:
KilimException - :
See Also:
org.objectweb.kilim.model.RuntimeSource#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 - :

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.