com.googlecode.sarasvati.join
Class IncompleteJoinResult

java.lang.Object
  extended by com.googlecode.sarasvati.join.IncompleteJoinResult
All Implemented Interfaces:
JoinResult

public final class IncompleteJoinResult
extends Object
implements JoinResult


Field Summary
static JoinResult INSTANCE
           
 
Method Summary
 List<ArcToken> getArcTokensCompletingJoin()
          Always throws an IllegalStateException
 JoinAction getJoinAction()
          Always returns JoinAction.Nothing
 NodeToken getMergeTarget()
          If the join action is JoinAction.Merge, then the arc token in question will be made into a parent of the given NodeToken.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final JoinResult INSTANCE
Method Detail

getJoinAction

public JoinAction getJoinAction()
Always returns JoinAction.Nothing

Specified by:
getJoinAction in interface JoinResult
Returns:
the action that the join strategy wants to take.
See Also:
JoinResult.getJoinAction()

getArcTokensCompletingJoin

public List<ArcToken> getArcTokensCompletingJoin()
Always throws an IllegalStateException

Specified by:
getArcTokensCompletingJoin in interface JoinResult
Returns:
The ArcTokens which were required to complete this join, and will be considered the parents of the new NodeToken.
See Also:
JoinResult.getArcTokensCompletingJoin()

getMergeTarget

public NodeToken getMergeTarget()
Description copied from interface: JoinResult
If the join action is JoinAction.Merge, then the arc token in question will be made into a parent of the given NodeToken.

Specified by:
getMergeTarget in interface JoinResult
Returns:
The node token into whose history the arc token will be merged into.