public class ServerSideDocDiff extends Object
Constructor and Description |
---|
ServerSideDocDiff(LinkedList<diff_match_patch.Patch> patches) |
Modifier and Type | Method and Description |
---|---|
AceDoc |
applyTo(AceDoc doc) |
String |
applyTo(String text) |
TransportDiff |
asTransport() |
static ServerSideDocDiff |
diff(AceDoc doc1,
AceDoc doc2) |
static ServerSideDocDiff |
diff(String text1,
String text2) |
static ServerSideDocDiff |
fromTransportDiff(TransportDiff diff) |
List<diff_match_patch.Patch> |
getPatches() |
String |
getPatchesString() |
boolean |
isIdentity() |
static ServerSideDocDiff |
newMarkersAndAnnotations(MarkerSetDiff msd,
SetDiff<AceAnnotation.MarkerAnnotation,TransportDoc.TransportMarkerAnnotation> mad) |
String |
toString() |
public ServerSideDocDiff(LinkedList<diff_match_patch.Patch> patches)
public static ServerSideDocDiff diff(AceDoc doc1, AceDoc doc2)
public static ServerSideDocDiff diff(String text1, String text2)
public static ServerSideDocDiff fromTransportDiff(TransportDiff diff)
public String getPatchesString()
public List<diff_match_patch.Patch> getPatches()
public TransportDiff asTransport()
public boolean isIdentity()
public static ServerSideDocDiff newMarkersAndAnnotations(MarkerSetDiff msd, SetDiff<AceAnnotation.MarkerAnnotation,TransportDoc.TransportMarkerAnnotation> mad)
Copyright © 2020 Magnolia International Ltd.. All rights reserved.