public abstract class StructuralChange extends Change
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
myPath |
Modifier | Constructor and Description |
---|---|
protected |
StructuralChange(java.io.DataInput in) |
protected |
StructuralChange(long id,
java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
boolean |
affectsMatching(java.util.regex.Pattern pattern) |
boolean |
affectsPath(java.lang.String path) |
boolean |
affectsProject(java.lang.String projectId) |
protected void |
cannotRevert(java.lang.String path,
boolean warnOnFileNotFound) |
protected java.lang.String[] |
getAffectedPaths() |
java.util.List<Content> |
getContentsToPurge() |
java.lang.String |
getOldPath() |
java.lang.String |
getPath() |
boolean |
isCreationalFor(java.lang.String path) |
protected void |
removeEntry(Entry e) |
abstract void |
revertOn(RootEntry root,
boolean warnOnFileNotFound) |
java.lang.String |
revertPath(java.lang.String path) |
java.lang.String |
toString() |
void |
write(java.io.DataOutput out) |
protected StructuralChange(long id, java.lang.String path)
protected StructuralChange(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
protected void removeEntry(Entry e)
public java.lang.String getPath()
public java.lang.String getOldPath()
public abstract void revertOn(RootEntry root, boolean warnOnFileNotFound)
protected void cannotRevert(java.lang.String path, boolean warnOnFileNotFound)
public java.lang.String revertPath(java.lang.String path)
public boolean affectsPath(java.lang.String path)
affectsPath
in class Change
public boolean affectsProject(java.lang.String projectId)
affectsProject
in class Change
public boolean affectsMatching(java.util.regex.Pattern pattern)
affectsMatching
in class Change
protected java.lang.String[] getAffectedPaths()
public boolean isCreationalFor(java.lang.String path)
isCreationalFor
in class Change
public java.util.List<Content> getContentsToPurge()
getContentsToPurge
in class Change
public java.lang.String toString()
toString
in class java.lang.Object