public class Modification extends Object
Constructor and Description |
---|
Modification(ModificationType type,
String source,
String destination) |
Modifier and Type | Method and Description |
---|---|
String |
getDestination() |
String |
getSource() |
ModificationType |
getType() |
protected static Modification |
onChange(ModificationType type,
String source) |
protected static Modification |
onChange(ModificationType type,
String source,
String dest) |
static Modification |
onCheckin(String path) |
static Modification |
onCheckout(String path) |
static Modification |
onCopied(String srcPath,
String dstPath)
Records a 'copied' change.
|
static Modification |
onCreated(String path)
Records a 'created' change
|
static Modification |
onDeleted(String path)
Records a 'deleted' change
|
static Modification |
onModified(String path)
Records a 'modified' change
|
static Modification |
onMoved(String srcPath,
String dstPath)
Records a 'moved' change.
|
static Modification |
onOrder(String orderedPath,
String beforeSibbling)
Records a 'order' change.
|
static Modification |
onRestore(String path,
String version) |
String |
toString() |
public Modification(ModificationType type, String source, String destination)
public ModificationType getType()
public String getSource()
public String getDestination()
public static Modification onModified(String path)
path
- path of the item that was modifiedpublic static Modification onCreated(String path)
path
- path of the item that was createdpublic static Modification onDeleted(String path)
path
- path of the item that was deletedpublic static Modification onMoved(String srcPath, String dstPath)
srcPath
- source path of the node that was moveddstPath
- destination path of the node that was moved.public static Modification onCopied(String srcPath, String dstPath)
srcPath
- source path of the node that was copieddstPath
- destination path of the node that was copied.public static Modification onOrder(String orderedPath, String beforeSibbling)
orderedPath
- Path of the node that was reorderedbeforeSibbling
- Name of the sibbling node before which the source node has
been inserted.protected static Modification onChange(ModificationType type, String source)
protected static Modification onChange(ModificationType type, String source, String dest)
public static Modification onCheckin(String path)
public static Modification onCheckout(String path)
public static Modification onRestore(String path, String version)
Copyright © 2015 The Apache Software Foundation. All rights reserved.