org.tmatesoft.svn.core.wc.admin
Class SVNChangeEntry
public class SVNChangeEntry
SVNChangeEntry objects are used to pass path change information to clients.
These objects are passed to
ISVNChangeEntryHandler.
SVNChangeEntry(String path, SVNNodeKind kind, char type, String copyFromPath, long copyFromRevision, boolean hasTextModifications, boolean hasPropModifications)- Constructs a change entry object.
|
TYPE_ADDED
public static final char TYPE_ADDED
Char 'A' (item added).
TYPE_DELETED
public static final char TYPE_DELETED
Char 'D' (item deleted).
TYPE_UPDATED
public static final char TYPE_UPDATED
Char 'U' (item updated).
SVNChangeEntry
public SVNChangeEntry(String path,
SVNNodeKind kind,
char type,
String copyFromPath,
long copyFromRevision,
boolean hasTextModifications,
boolean hasPropModifications) Constructs a change entry object.
path - the path of a changed itemtype - a change type (one of static fields)copyFromPath - a copy-from source path (if the item is copied)copyFromRevision - a revision of a copy-from source (if the item is copied)hasTextModifications - true if path
is a file and it's modified, false
otherwisehasPropModifications - true if the item has
property modifications
getCopyFromPath
public String getCopyFromPath()
Returns a copy-from source path.
getCopyFromRevision
public long getCopyFromRevision()
Returns a copy-from source revision.
- a copy-from revision number
getKind
public SVNNodeKind getKind()
Returns the node kind of the item.
getPath
public String getPath()
Returns the absolute path of the changed item represented by
this object.
getType
public char getType()
Returns the type of the item change.
- a char that is one of static fields of this class
hasPropertyModifications
public boolean hasPropertyModifications()
Says whether the item's properties were
modified.
- true if
the item has property modifications, otherwise
false
hasTextModifications
public boolean hasTextModifications()
Says whether the file item's contents were
modified. This method is relevant only for
file contents.
- true if
the item has text modifications, otherwise
false
Copyright © 2004-2006 TMate Software Ltd. All Rights Reserved.