Class LineNumberFormat<L extends Label>
java.lang.Object
org.variantsync.diffdetective.variation.diff.serialize.nodeformat.LineNumberFormat<L>
- All Implemented Interfaces:
LinegraphFormat
,DiffNodeLabelFormat<L>
Labels nodes using their line number in the source diff.
-
Constructor Summary
-
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, toMultilineLabel
Methods inherited from interface org.variantsync.diffdetective.variation.diff.serialize.LinegraphFormat
getIdentifier, getShortName
-
Constructor Details
-
LineNumberFormat
public LineNumberFormat()
-
-
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
-