org.objectweb.kilim.model
Class RtComponentElement

java.lang.Object
  extended byorg.objectweb.kilim.model.RtComponentElement
All Implemented Interfaces:
ComponentElement, RuntimeElement
Direct Known Subclasses:
ComponentFactory.RTEventSource, ComponentFactory.RTSetter, RtComponent, RtComponentSlot, RtComponentSource

public abstract class RtComponentElement
extends java.lang.Object
implements ComponentElement, RuntimeElement

Author:
horn. This abstract class is the implementation of the interface ComponentElement, It is thus the parent interface of all component element objects.It just contains a reference to the containing element and to the template description.

Field Summary
private  ContainerElement container
           
private  TemplateElementImpl element
           
protected static long nbComponent
           
protected static long nbElement
           
 
Constructor Summary
protected RtComponentElement(TemplateElementImpl aElement, ContainerElement aContainer)
          The protected constructor for a RtComponentElement.
 
Method Summary
protected  boolean containsElement(java.util.List aList, java.lang.String aName)
           
 Component getContainingComponent()
          returns a reference to the component containing the element.
 ContainerElement getContainingElement()
          returns a reference to the component or the slot containing the element.
protected  java.lang.Object getElement(java.util.List aList, java.lang.String aName)
           
 TemplateElementImpl getElementDescription()
          returns the "template description" of the component element.
static long getNbComponent()
           
static long getNbElement()
           
 java.lang.String getQualifiedName()
          returns the fully qualified name of the component element.
 RuntimeElement getTarget()
           
 java.util.Iterator getTemplateDefHierarchy()
          returns all templates in which the element has been defined (and eventually redefined).
protected  java.lang.Object removeElement(java.util.List aList, java.lang.String aName)
           
 
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
getLocalName
 

Field Detail

nbComponent

protected static long nbComponent

nbElement

protected static long nbElement

container

private ContainerElement container

element

private TemplateElementImpl element
Constructor Detail

RtComponentElement

protected RtComponentElement(TemplateElementImpl aElement,
                             ContainerElement aContainer)
The protected constructor for a RtComponentElement.

Parameters:
aElement - : a reference to the template description of the element.
aContainer - : a reference to the containing element.
Method Detail

getNbComponent

public static long getNbComponent()

getNbElement

public static long getNbElement()

getContainingElement

public ContainerElement getContainingElement()
Description copied from interface: ComponentElement
returns a reference to the component or the slot containing the element. It returns null when applied to the top level component.

Specified by:
getContainingElement in interface ComponentElement
Returns:
ContainerElement
See Also:
ComponentElement.getContainingElement()

getContainingComponent

public Component getContainingComponent()
Description copied from interface: ComponentElement
returns a reference to the component containing the element. It returns null when applied to the top level component. It is equivalent to getContainingElement() for elements directly defined at a component level. It is equivalent to getContainingElement().getContainingElement() for elements defined at a slot level.

Specified by:
getContainingComponent in interface ComponentElement
Returns:
Component
See Also:
ComponentElement.getContainingComponent()

getElementDescription

public TemplateElementImpl getElementDescription()
Description copied from interface: ComponentElement
returns the "template description" of the component element.

Specified by:
getElementDescription in interface ComponentElement
Returns:
TemplateElement
See Also:
ComponentElement.getElementDescription()

getTemplateDefHierarchy

public java.util.Iterator getTemplateDefHierarchy()
Description copied from interface: ComponentElement
returns all templates in which the element has been defined (and eventually redefined). This method is mainly targeted to debugging.

Specified by:
getTemplateDefHierarchy in interface ComponentElement
Returns:
Iterator
See Also:
ComponentElement.getTemplateDefHierarchy()

getQualifiedName

public java.lang.String getQualifiedName()
Description copied from interface: ComponentElement
returns the fully qualified name of the component element.

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

getTarget

public RuntimeElement getTarget()
                         throws KilimException
Throws:
KilimException
See Also:
RuntimeSource.getTarget()

containsElement

protected boolean containsElement(java.util.List aList,
                                  java.lang.String aName)
                           throws InternalException
Throws:
InternalException

removeElement

protected java.lang.Object removeElement(java.util.List aList,
                                         java.lang.String aName)
                                  throws InternalException
Throws:
InternalException

getElement

protected java.lang.Object getElement(java.util.List aList,
                                      java.lang.String aName)
                               throws InternalException
Throws:
InternalException