LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.data
Class LyMultiWorkSpace

java.lang.Object
  extended by leon.data.LyObjectList
      extended by leon.data.LyWorkSpace
          extended by leon.data.LyMultiWorkSpace
All Implemented Interfaces:
LyGetSessionInterface, LyAdvancedDataSourceListener, LyDataSourceListener
Direct Known Subclasses:
LyIntersectionWorkSpace

public class LyMultiWorkSpace
extends LyWorkSpace

This class implements a multiple workspace : workspace that is the result of merging other workspaces.

Workspaces are added in a multi-workspace usind addList method. The result workspace can be dynamic only if all added workspaces are dynamic.

Since objects come from different workspaces and may be present in several of them, a counter is associated to each object to count how many times they are present in these workspaces.

See Also:
LyWorkSpaceListener

Field Summary
static java.lang.String __VERSION
          File version
 
Constructor Summary
LyMultiWorkSpace(LyDataSession session, boolean dynamic)
          Constructs an empty multi-workspace within a given session.
 
Method Summary
 void addList(LyObjectList list)
          Adds an objects list to our multiple workspace.
 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.
 void removeList(LyObjectList list)
          Removes an objects list from our multiple workspace.
 void reset()
          Method for resetting a workspace.
 java.lang.String toString()
          Returns a string representation of this workspace.
 
Methods inherited from class leon.data.LyWorkSpace
addListener, dataSourceEventsGrouped, free, getListener, getListenerCount, getSession, isDynamic, isLocal, lock, objectCreated, objectDeleted, objectModified, 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
Constructor Detail

LyMultiWorkSpace

public LyMultiWorkSpace(LyDataSession session,
                        boolean dynamic)
Constructs an empty multi-workspace within a given session.

Parameters:
session - Session in which this workspace is constructed.
dynamic - Specifies if this workspace is dynamic or not.
Method Detail

addList

public void addList(LyObjectList list)
Adds an objects list to our multiple workspace.

Overrides:
addList in class LyWorkSpace
Parameters:
list - Objects list that is added to our workspace.
IllegalArgumentException - If this workspace is dynamic and the given list is not or if the list is null.

removeList

public void removeList(LyObjectList list)
Removes an objects list from our multiple workspace.

Parameters:
list - Objects list that is removed from our workspace.

getClasses

public LyInfoList<LyClassInfo> getClasses()
Return the list of all class infos to which objects of this workspace belong.

Specified by:
getClasses in class LyObjectList
Returns:
List of classes to which objects of this workspace belong.

reset

public void reset()
Method for resetting a workspace. This method is overriden to reset all sub-workspaces.

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.

(c) January 2013 - W4 S.A.

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