com.unitesk.requality.merge
Class Context

java.lang.Object
  extended by com.unitesk.requality.merge.Context

public class Context
extends java.lang.Object


Constructor Summary
Context(Node root)
           
Context(Node node, Context parentContext)
           
 
Method Summary
 int contextSimilarity(Context that)
           
 boolean equals(Context that)
           
 void excludeFromSearch(boolean exclude)
           
 java.util.List<Context> getChildContexts()
           
 int getDepth()
           
 int getId()
           
 int getIndex()
           
 long getLabel()
           
 Node getNode()
           
 Context getParentContext()
           
 int getPosition()
           
 java.util.List<Context> getSiblingContexts()
           
 boolean isExcluded()
           
 boolean isWithin(Context context)
           
 int positionDistance(Context that)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Context

public Context(Node root)

Context

public Context(Node node,
               Context parentContext)
Method Detail

getChildContexts

public java.util.List<Context> getChildContexts()

getSiblingContexts

public java.util.List<Context> getSiblingContexts()

contextSimilarity

public int contextSimilarity(Context that)

equals

public boolean equals(Context that)

positionDistance

public int positionDistance(Context that)

getPosition

public int getPosition()

getDepth

public int getDepth()

isWithin

public boolean isWithin(Context context)

getParentContext

public Context getParentContext()

getLabel

public long getLabel()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getIndex

public int getIndex()

getId

public int getId()

getNode

public Node getNode()

isExcluded

public boolean isExcluded()

excludeFromSearch

public void excludeFromSearch(boolean exclude)