Class RenameRootNodeFormat<L extends Label>
java.lang.Object
org.variantsync.diffdetective.variation.diff.serialize.nodeformat.RenameRootNodeFormat<L>
- All Implemented Interfaces:
LinegraphFormat
,DiffNodeLabelFormat<L>
Replaces the label of the root node with
"root"
.- Author:
- Benjamin Moosherr
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRenameRootNodeFormat
(DiffNodeLabelFormat<L> inner) RenameRootNodeFormat
(DiffNodeLabelFormat<L> inner, String rootLabel) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.variantsync.diffdetective.variation.diff.serialize.nodeformat.DiffNodeLabelFormat
fromLabelAndId, fromLineGraphLine
Methods inherited from interface org.variantsync.diffdetective.variation.diff.serialize.LinegraphFormat
getIdentifier, getShortName
-
Field Details
-
rootLabel
-
inner
-
-
Constructor Details
-
RenameRootNodeFormat
-
RenameRootNodeFormat
-
-
Method Details
-
toLabel
Description copied from interface:DiffNodeLabelFormat
Converts aDiffNode
into a label suitable for exporting. This may be human readable text or machine parseable metadata.- Specified by:
toLabel
in interfaceDiffNodeLabelFormat<L extends Label>
- Parameters:
node
- TheDiffNode
to be labeled- Returns:
- a label for
node
-
toMultilineLabel
Description copied from interface:DiffNodeLabelFormat
Converts aDiffNode
into a multi line label suitable for exporting. This should be human readable text. Use a single line for machine parseable metadata (DiffNodeLabelFormat.toLabel(org.variantsync.diffdetective.variation.diff.DiffNode<? extends L>)
).- Specified by:
toMultilineLabel
in interfaceDiffNodeLabelFormat<L extends Label>
- Parameters:
node
- TheDiffNode
to be labeled- Returns:
- a list of lines of the label for
node
-