Together Workflow Editor 3.0-1 API

org.enhydra.jawe.components.graph
Class JaWEParentMap

java.lang.Object
  extended by org.jgraph.graph.ParentMap
      extended by org.enhydra.jawe.components.graph.JaWEParentMap
All Implemented Interfaces:
java.io.Serializable

public class JaWEParentMap
extends org.jgraph.graph.ParentMap

Describes relations between childs and parents.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jgraph.graph.ParentMap
org.jgraph.graph.ParentMap.Entry
 
Field Summary
 
Fields inherited from class org.jgraph.graph.ParentMap
changedNodes, childCount, entries
 
Constructor Summary
JaWEParentMap()
           
 
Method Summary
 java.util.ArrayList emptyParentList()
          Returns the list of parents that will be empty when this parent map is applied.
 int entryCount()
          Returns the number of entries in parent map.
 java.util.ArrayList getNewChildren(java.lang.Object parent)
          Returns all children which will belong to given parent when this parent map is applied.
 java.lang.Object getNewParent(java.lang.Object child)
          Returns parent of given child.
 java.util.ArrayList getRemovedNodes()
          Returns nodes that will be removed after this map is applied (These are entries which parent part is null).
 boolean hasAnyParticipant(java.lang.Object p)
          Returns true if Participant that is in changed nodes set has other Participants.
 
Methods inherited from class org.jgraph.graph.ParentMap
addEntries, addEntry, clone, create, entries, getChangedNodes, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JaWEParentMap

public JaWEParentMap()
Method Detail

emptyParentList

public java.util.ArrayList emptyParentList()
Returns the list of parents that will be empty when this parent map is applied.


hasAnyParticipant

public boolean hasAnyParticipant(java.lang.Object p)
Returns true if Participant that is in changed nodes set has other Participants. NOTE: because this method is not used when Participants are added to each other, method doesn't check for added participants but only for removed.


getNewChildren

public java.util.ArrayList getNewChildren(java.lang.Object parent)
Returns all children which will belong to given parent when this parent map is applied.


getNewParent

public java.lang.Object getNewParent(java.lang.Object child)
Returns parent of given child. The child will belong to returned parent when this parent map is applied.


getRemovedNodes

public java.util.ArrayList getRemovedNodes()
Returns nodes that will be removed after this map is applied (These are entries which parent part is null).


entryCount

public int entryCount()
Returns the number of entries in parent map.


Together Workflow Editor 3.0-1 API