public class RegularDiff extends Diff
ALLOW_DIFFERENT_IDS, CARE_ABOUT_NAMES, connections, STRICTER_NAMES, treeA, treeB
Constructor and Description |
---|
RegularDiff(File fileA,
File fileB)
Instantiates a new regular diff object in order to compare two documents
stored in files fileA and fileB.
|
RegularDiff(String docA,
String docB)
Instantiates a new regular diff object in order to compare two documents
stored in strings docA and docB.
|
RegularDiff(de.unirostock.sems.xmlutils.ds.TreeDocument treeA,
de.unirostock.sems.xmlutils.ds.TreeDocument treeB)
Instantiates a new regular diff object in order to compare two tree
documents.
|
Modifier and Type | Method and Description |
---|---|
String |
getHierarchyDotGraph()
Returns the component's hierarchy graph encoded in DOT language.
|
String |
getHierarchyGraph(GraphTranslator gt)
Returns the component's hierarchy graph providing an own graph translator.
|
String |
getHierarchyGraphML()
Returns the component's hierarchy graph encoded in GraphML.
|
String |
getHierarchyJsonGraph()
Returns the component's hierarchy graph encoded in JSON.
|
String |
getHTMLReport()
Returns the report encoded in HTML.
|
String |
getMarkDownReport()
Returns the report encoded MarkDown.
|
String |
getReactionsDotGraph()
Returns the graph of the reaction network encoded in DOT language.
|
Object |
getReactionsGraph(GraphTranslator gt)
Returns the graph of the reaction network providing an own graph
translator.
|
String |
getReactionsGraphML()
Returns the graph of the reaction network encoded in GraphML.
|
String |
getReactionsJsonGraph()
Returns the graph of the reaction network encoded in JSON.
|
String |
getReactionsSbgnJsonGraph()
Returns the graph of the reaction network encoded in an SBGN-JSON format.
|
String |
getReport(Typesetting ts)
Returns the report providing an on markup processor.
|
String |
getReStructuredTextReport()
Returns the report encoded in ReStructured text.
|
boolean |
mapTrees(boolean allowDifferentIds,
boolean careAboutNames,
boolean stricterNames)
Map both trees.
|
getCRNDotGraph, getCRNGraph, getCRNGraphML, getCRNJsonGraph, getDiff, getDiff, getPatch, mapTrees
public RegularDiff(File fileA, File fileB) throws de.unirostock.sems.xmlutils.exception.XmlDocumentParseException, IOException, org.jdom2.JDOMException
fileA
- the file containing the former versionfileB
- the file containing the later versionde.unirostock.sems.xmlutils.exception.XmlDocumentParseException
- the xml document parse exceptionIOException
- Signals that an I/O exception has occurred.org.jdom2.JDOMException
- the jDOM exceptionpublic RegularDiff(String docA, String docB) throws de.unirostock.sems.xmlutils.exception.XmlDocumentParseException, IOException, org.jdom2.JDOMException
docA
- the former versiondocB
- the later versionde.unirostock.sems.xmlutils.exception.XmlDocumentParseException
- the xml document parse exceptionIOException
- Signals that an I/O exception has occurred.org.jdom2.JDOMException
- the jDOM exceptionpublic RegularDiff(de.unirostock.sems.xmlutils.ds.TreeDocument treeA, de.unirostock.sems.xmlutils.ds.TreeDocument treeB)
treeA
- the former version of the treetreeB
- the later version of the treepublic boolean mapTrees(boolean allowDifferentIds, boolean careAboutNames, boolean stricterNames) throws BivesConnectionException
Diff
Diff.ALLOW_DIFFERENT_IDS
, Diff.CARE_ABOUT_NAMES
, and Diff.STRICTER_NAMES
.mapTrees
in class Diff
allowDifferentIds
- are mapped entities allowed to have different ids?careAboutNames
- should we care about names?stricterNames
- should we handle names very strictly?BivesConnectionException
public Object getReactionsGraph(GraphTranslator gt) throws Exception
Diff
getReactionsGraph
in class Diff
gt
- the graph translatorException
- the exceptionpublic String getReactionsGraphML()
Diff
getReactionsGraphML
in class Diff
public String getReactionsDotGraph()
Diff
getReactionsDotGraph
in class Diff
public String getHTMLReport()
Diff
getHTMLReport
in class Diff
public String getMarkDownReport()
Diff
getMarkDownReport
in class Diff
public String getReStructuredTextReport()
Diff
getReStructuredTextReport
in class Diff
public String getHierarchyGraph(GraphTranslator gt)
Diff
getHierarchyGraph
in class Diff
gt
- the graph translatorpublic String getHierarchyGraphML()
Diff
getHierarchyGraphML
in class Diff
public String getHierarchyDotGraph()
Diff
getHierarchyDotGraph
in class Diff
public String getReactionsJsonGraph()
Diff
getReactionsJsonGraph
in class Diff
public String getHierarchyJsonGraph()
Diff
getHierarchyJsonGraph
in class Diff
public String getReport(Typesetting ts)
Diff
public String getReactionsSbgnJsonGraph() throws Exception
Diff
getReactionsSbgnJsonGraph
in class Diff
Exception
- the exceptionCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.