org.tmatesoft.svn.core
public class SVNLogEntryPath extends Object implements Serializable
SVNLogEntryPath objects are held by an SVNLogEntry object - they are representations of all the changed paths in the revision represented by that SVNLogEntry object.
Version: 1.1.1
See Also: SVNLogEntry
Field Summary | |
---|---|
static char | TYPE_ADDED
Char 'A' (item added). |
static char | TYPE_DELETED
Char 'D' (item deleted). |
static char | TYPE_MODIFIED
Char 'M' (item modified). |
static char | TYPE_REPLACED
Char 'R' (item replaced). |
Constructor Summary | |
---|---|
SVNLogEntryPath(String path, char type, String copyPath, long copyRevision)
Constructs an SVNLogEntryPath object.
|
Method Summary | |
---|---|
boolean | equals(Object obj)
Compares this object with another one.
|
String | getCopyPath()
Returns the path of the ancestor of the item represented
by this object.
|
long | getCopyRevision()
Returns the revision of the ancestor of the item represented by this
object.
|
String | getPath()
Returns the path of the item represented by this object.
|
char | getType()
Gets the type of the change applied to the item represented by this
object. |
int | hashCode()
Calculates and returns a hash code for this object.
|
protected void | setChangeType(char type) |
protected void | setCopyPath(String path) |
protected void | setCopyRevision(long revision) |
void | setPath(String path)
Sets the path of the item represented by this object.
|
String | toString()
Gives a string representation of this oobject.
|
Use char constants of this class as a change type
to
pass to this constructor.
Parameters: path a path that was changed in a revision type a type of the path change; it can be one of the following:
'M' - Modified, 'A' - Added,
'D' - Deleted, 'R' - Replaced copyPath the path of the ancestor of the item represented
by path
(in that case if path
was copied), or null if
path
copyRevision the ancestor's revision if the path
is a branch,
or -1 if not
Parameters: obj an object to compare with
Returns: true
if this object is the same as the obj
argument
Returns: the origin path from where the item, represented by this object, was copied, or null if it wasn't copied
Returns: the revision of the origin path from where the item, represented by this object, was copied, or -1 if the item was not copied
Returns: the changed path represented by this object
Returns: a type of the change as a char label
Returns: a hash code
Parameters: path a path of an item that was changed (regarding a definite revision)
Returns: a string representing this object