Class FullNodeFormat
java.lang.Object
org.variantsync.diffdetective.variation.diff.serialize.nodeformat.FullNodeFormat
- All Implemented Interfaces:
LinegraphFormat,DiffNodeLabelFormat<DiffLinesLabel>
Labels containing all information encoded into a
DiffNode.
The format consists of the following lines:
diffType
nodeType
fromLine
toLine
directFeatureMapping
label
.- Author:
- Benjamin Moosherr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoLabel(DiffNode<? extends DiffLinesLabel> node) Converts aDiffNodeinto a label suitable for exporting.toMultilineLabel(DiffNode<? extends DiffLinesLabel> node) Converts aDiffNodeinto a multi line label suitable for exporting.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.variantsync.diffdetective.variation.diff.serialize.nodeformat.DiffNodeLabelFormat
fromLabelAndId, fromLineGraphLineMethods inherited from interface org.variantsync.diffdetective.variation.diff.serialize.LinegraphFormat
getIdentifier, getShortName
-
Constructor Details
-
FullNodeFormat
public FullNodeFormat()
-
-
Method Details
-
toMultilineLabel
Description copied from interface:DiffNodeLabelFormatConverts aDiffNodeinto 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:
toMultilineLabelin interfaceDiffNodeLabelFormat<DiffLinesLabel>- Parameters:
node- TheDiffNodeto be labeled- Returns:
- a list of lines of the label for
node
-
toLabel
Description copied from interface:DiffNodeLabelFormatConverts aDiffNodeinto a label suitable for exporting. This may be human readable text or machine parseable metadata.- Specified by:
toLabelin interfaceDiffNodeLabelFormat<DiffLinesLabel>- Parameters:
node- TheDiffNodeto be labeled- Returns:
- a label for
node
-