Class RenderableNode
- java.lang.Object
-
- de.hsh.graja.regression.report.treevisualiser.RenderableNode
-
- All Implemented Interfaces:
ComparableNode
,Iterable<ComparableNode>
public final class RenderableNode extends Object implements ComparableNode
-
-
Field Summary
-
Fields inherited from interface de.hsh.graja.regression.treecompare.ComparableNode
IS_ROOT
-
-
Constructor Summary
Constructors Constructor Description RenderableNode(String text, RenderableNode... children)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
childCount()
Iterator<RenderableNode>
childrenReversed()
boolean
equals(Object obj)
ComparableNode
getChild(int position)
String
getReferenceFormatString()
Set<RenderFlag>
getRenderFlags()
Optional<String>
getUrl(String assignment, String sampleSolution)
int
hashCode()
boolean
isChild(ComparableNode node)
Iterator<ComparableNode>
iterator()
String
nodeRepresentation()
static RenderableNode
of(ComparableNode expectedRoot, ComparableNode observedRoot, List<Violation> violations)
int
positionInParent()
void
setPositionOfChildInParent(int position)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hsh.graja.regression.treecompare.ComparableNode
containsPath, isLeaf, isRoot, query
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
RenderableNode
@SafeVarargs public RenderableNode(String text, RenderableNode... children)
-
-
Method Detail
-
getRenderFlags
public Set<RenderFlag> getRenderFlags()
-
nodeRepresentation
public String nodeRepresentation()
- Specified by:
nodeRepresentation
in interfaceComparableNode
-
childCount
public final int childCount()
- Specified by:
childCount
in interfaceComparableNode
-
positionInParent
public final int positionInParent()
- Specified by:
positionInParent
in interfaceComparableNode
-
setPositionOfChildInParent
public final void setPositionOfChildInParent(int position)
- Specified by:
setPositionOfChildInParent
in interfaceComparableNode
-
getChild
public final ComparableNode getChild(int position)
- Specified by:
getChild
in interfaceComparableNode
-
iterator
public Iterator<ComparableNode> iterator()
- Specified by:
iterator
in interfaceIterable<ComparableNode>
-
isChild
public boolean isChild(ComparableNode node)
-
childrenReversed
public Iterator<RenderableNode> childrenReversed()
-
of
public static RenderableNode of(ComparableNode expectedRoot, ComparableNode observedRoot, List<Violation> violations)
-
getReferenceFormatString
public String getReferenceFormatString()
-
-