LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.data
Class LyStepWorkSpace

java.lang.Object
  extended by leon.data.LyObjectList
      extended by leon.data.LyWorkSpace
          extended by leon.data.LyStepWorkSpace
All Implemented Interfaces:
LyGetSessionInterface, LyAdvancedDataSourceListener, LyDataSourceListener

public final class LyStepWorkSpace
extends LyWorkSpace

This workspace implements a step workspace : workspace for calculating an objects list obtained from an initial objects list using a step.

A step contains several relations, a target class and a direction.

Step workspaces can be chained to calculate more complicated cross references using routes that contain several steps.

See Also:
LyStep, LyRoute

Field Summary
static java.lang.String __VERSION
          File version.
 
Method Summary
 LyInfoList<LyClassInfo> getClasses()
          Return the list of all class infos to which objects of this workspace belong.
 LySimpleObjectList getSources(LyObject target)
          Method for retrieving source objects that lead to given target object.
 boolean objectCreated(LyDataSourceEvent event)
          Method for receiving an object creation.
 boolean objectModified(LyDataSourceEvent event)
          Method for receiving an object modification.
 void reset()
          Method for resetting this workspace.
 java.lang.String toString()
          Returns a string representation of this workspace.
 
Methods inherited from class leon.data.LyWorkSpace
addList, addListener, dataSourceEventsGrouped, free, getListener, getListenerCount, getSession, isDynamic, isLocal, lock, objectDeleted, objectStateChanged, objectUserEvent, removeListener, unlock
 
Methods inherited from class leon.data.LyObjectList
contains, delete, delete, equals, equals, getIndex, getIntersection, getList, getList, getList, getList, getList, getList, getList, getList, getList, getList, getList, getList, getObject, getObject, getObject, getObjects, getSize, getSize, getSort, getSortedList, indexOf, intersects, isEmpty, isSorted, iterator, set, setSort, setSortByName, setSorted, toObjectIds
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version.

See Also:
Constant Field Values
Method Detail

getClasses

public LyInfoList<LyClassInfo> getClasses()
Return the list of all class infos to which objects of this workspace belong. Since the step as a target class, we known from start to which class the objects of this workspace belong, so this method is overriden to optimize it.

Specified by:
getClasses in class LyObjectList
Returns:
List of classes to which objects of this workspace belong. For this type of workspace, the result list will always contain only one class.

reset

public void reset()
Method for resetting this workspace. Objects contained in this workspace are removed and reloaded from parent list using the specified step.

Overrides:
reset in class LyWorkSpace

toString

public java.lang.String toString()
Returns a string representation of this workspace.

Overrides:
toString in class LyObjectList
Returns:
This workspace returned as a string.

getSources

public LySimpleObjectList getSources(LyObject target)
Method for retrieving source objects that lead to given target object.

Overrides:
getSources in class LyWorkSpace
Parameters:
target - Target object
Returns:
Source objects that leade to target object.

objectCreated

public boolean objectCreated(LyDataSourceEvent event)
Method for receiving an object creation.

Specified by:
objectCreated in interface LyDataSourceListener
Overrides:
objectCreated in class LyWorkSpace
Parameters:
event - Event notifying the creation of an object.
Returns:
True indicating if the event was used, false otherwise.

objectModified

public boolean objectModified(LyDataSourceEvent event)
Method for receiving an object modification.

Specified by:
objectModified in interface LyDataSourceListener
Overrides:
objectModified in class LyWorkSpace
Parameters:
event - Event notifying the modification of an object.
Returns:
True indicating if the event was used, false otherwise.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com