org.talend.core.model.process
Class Element

java.lang.Object
  extended by org.talend.core.model.process.Element
All Implemented Interfaces:
java.lang.Cloneable, IElement
Direct Known Subclasses:
Connection, ConnectionLabel, ConnectionTrace, Node, NodeContainer, NodeLabel, NodePerformance, Note, Process, RowGenProcess

public abstract class Element
extends java.lang.Object
implements java.lang.Cloneable, IElement

Abstract base class of elements in the model. All elements in the diagram must extends this class
$Id: Element.java 2738 2007-03-28 13:12:27 +0000 (mer., 28 mars 2007) plegall $


Field Summary
static int ALPHA_VALUE
           
protected  java.beans.PropertyChangeSupport listeners
           
 
Constructor Summary
Element()
           
 
Method Summary
 void addElementParameter(IElementParameter parameter)
           
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
protected  void firePropertyChange(java.lang.String prop, java.lang.Object old, java.lang.Object newValue)
           
protected  void fireStructureChange(java.lang.String prop, java.lang.Object child)
           
abstract  java.lang.String getElementName()
           
 IElementParameter getElementParameter(java.lang.String name)
           
 java.util.List<? extends IElementParameter> getElementParameters()
           
 java.lang.Object getPropertyValue(java.lang.String id)
          Gives the value of the given property.
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void setElementParameters(java.util.List<? extends IElementParameter> parameters)
           
 void setPropertyValue(java.lang.String id, java.lang.Object value)
          Set the property of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.talend.core.model.process.IElement
isReadOnly, setReadOnly
 

Field Detail

ALPHA_VALUE

public static final int ALPHA_VALUE
See Also:
Constant Field Values

listeners

protected java.beans.PropertyChangeSupport listeners
Constructor Detail

Element

public Element()
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

firePropertyChange

protected void firePropertyChange(java.lang.String prop,
                                  java.lang.Object old,
                                  java.lang.Object newValue)

fireStructureChange

protected void fireStructureChange(java.lang.String prop,
                                   java.lang.Object child)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.String id)
Gives the value of the given property.

Parameters:
id -
Returns:
Object

setPropertyValue

public void setPropertyValue(java.lang.String id,
                             java.lang.Object value)
Set the property of the object.

Parameters:
id -
value -

addElementParameter

public void addElementParameter(IElementParameter parameter)

getElementParameters

public java.util.List<? extends IElementParameter> getElementParameters()
Specified by:
getElementParameters in interface IElement

setElementParameters

public void setElementParameters(java.util.List<? extends IElementParameter> parameters)
Specified by:
setElementParameters in interface IElement

getElementParameter

public IElementParameter getElementParameter(java.lang.String name)

getElementName

public abstract java.lang.String getElementName()