org.jicengine.element
Class AbstractElement

java.lang.Object
  extended byorg.jicengine.element.AbstractElement
All Implemented Interfaces:
Element
Direct Known Subclasses:
ElementImpl, StaticValueElement, WrapperActionElement

public abstract class AbstractElement
extends java.lang.Object
implements Element

implements the 'name' and the 'location' properties.

Author:
.timo

Field Summary
 
Fields inherited from interface org.jicengine.element.Element
VARIABLE_NAME_CDATA, VARIABLE_NAME_ELEMENT_INSTANCE, VARIABLE_NAME_PARENT_INSTANCE
 
Constructor Summary
AbstractElement(java.lang.String name, Location location)
          these two parameters shouldn't change during the lifetime of the Element, so given in the constructor.
 
Method Summary
 Location getLocation()
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractElement

public AbstractElement(java.lang.String name,
                       Location location)
these two parameters shouldn't change during the lifetime of the Element, so given in the constructor.

Parameters:
location - Element interface doesn't include the location, but on the implementation level it is good that every Element knows its location.
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Element

getLocation

public Location getLocation()