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 VariationDiffSourcefromLineGraphLine(String lineGraphLine) Converts a line describing a graph (starting with "t # ") in line graph format into aVariationDiffSource.toLabel(VariationDiffSource variationDiffSource) Converts aVariationDiffSourcelabel of line graph.default StringtoLineGraphLine(VariationDiffSource variationDiffSource) Prepends thetree declarationto 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
VariationDiffSourcedescibed by this label.
-
toLabel
Converts aVariationDiffSourcelabel of line graph.- Parameters:
variationDiffSource- TheVariationDiffSourceto 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
VariationDiffSourcedescibed by the label of this line.
-
toLineGraphLine
Prepends thetree declarationto a label and return an entire line graph line.- Parameters:
variationDiffSource- TheVariationDiffSourceto be converted- Returns:
- The entire line graph line of a
VariationDiffSource.
-