Interface VariationDiffLabelFormat
- All Superinterfaces:
LinegraphFormat
- All Known Implementing Classes:
CommitDiffVariationDiffLabelFormat
,IndexedTreeFormat
,RWCompositePatternTreeFormat
Reads and writes
VariationDiffSource
from and to line graph.- Author:
- Paul Bittner, Kevin Jedelhauser
-
Method Summary
Modifier and TypeMethodDescriptionConverts a label of line graph into aVariationDiffSource
.default VariationDiffSource
fromLineGraphLine
(String lineGraphLine) Converts a line describing a graph (starting with "t # ") in line graph format into aVariationDiffSource
.toLabel
(VariationDiffSource variationDiffSource) Converts aVariationDiffSource
label of line graph.default String
toLineGraphLine
(VariationDiffSource variationDiffSource) Prepends thetree declaration
to a label and return an entire line graph line.Methods inherited from interface org.variantsync.diffdetective.variation.diff.serialize.LinegraphFormat
getIdentifier, getShortName
-
Method Details
-
fromLabel
Converts a label of line graph into aVariationDiffSource
.- Parameters:
label
- A string containing the label of theVariationDiffSource
- Returns:
- The
VariationDiffSource
descibed by this label.
-
toLabel
Converts aVariationDiffSource
label of line graph.- Parameters:
variationDiffSource
- TheVariationDiffSource
to be converted- Returns:
- The corresponding line graph line
-
fromLineGraphLine
Converts a line describing a graph (starting with "t # ") in line graph format into aVariationDiffSource
.- Parameters:
lineGraphLine
- A line from a line graph file starting with "t #"- Returns:
- The
VariationDiffSource
descibed by the label of this line.
-
toLineGraphLine
Prepends thetree declaration
to a label and return an entire line graph line.- Parameters:
variationDiffSource
- TheVariationDiffSource
to be converted- Returns:
- The entire line graph line of a
VariationDiffSource
.
-