Class AbstractSimulationElement<E>
- java.lang.Object
-
- org.silverpeas.core.process.annotation.AbstractSimulationElement<E>
-
- All Implemented Interfaces:
SimulationElement<E>
- Direct Known Subclasses:
SimpleDocumentSimulationElement
,ThumbnailSimulationElement
public abstract class AbstractSimulationElement<E> extends Object implements SimulationElement<E>
User: Yohann Chastagnier Date: 28/10/13
-
-
Constructor Summary
Constructors Constructor Description AbstractSimulationElement(E element)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
getElement()
Gets the typed elementboolean
isOld()
Indicates if the element is an old one.AbstractSimulationElement<E>
setOld()
Indicates the element as an old one
-
-
-
Constructor Detail
-
AbstractSimulationElement
public AbstractSimulationElement(E element)
Default constructor.- Parameters:
element
- the source element.
-
-
Method Detail
-
setOld
public AbstractSimulationElement<E> setOld()
Indicates the element as an old one- Returns:
- the current instance of the element of the simulation.
-
isOld
public boolean isOld()
Description copied from interface:SimulationElement
Indicates if the element is an old one. This information is useful in update or delete action.- Specified by:
isOld
in interfaceSimulationElement<E>
- Returns:
- true if the element is an old one, false otherwise.
-
getElement
public E getElement()
Description copied from interface:SimulationElement
Gets the typed element- Specified by:
getElement
in interfaceSimulationElement<E>
- Returns:
- the typed element.
-
-