public class SVNLogEntryPath
extends java.lang.Object
implements java.io.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.
SVNLogEntry,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
SVNLogEntryPath(java.lang.String path,
char type,
java.lang.String copyPath,
long copyRevision)
Constructs an SVNLogEntryPath object.
|
SVNLogEntryPath(java.lang.String path,
char type,
java.lang.String copyPath,
long copyRevision,
SVNNodeKind kind)
Constructs an SVNLogEntryPath object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares this object with another one.
|
java.lang.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.
|
SVNNodeKind |
getKind()
Returns the node kind of the changed path, represented by
this object.
|
java.lang.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(java.lang.String path) |
protected void |
setCopyRevision(long revision) |
void |
setPath(java.lang.String path)
Sets the path of the item represented by this object.
|
java.lang.String |
toString()
Gives a string representation of this oobject.
|
public static final char TYPE_ADDED
public static final char TYPE_DELETED
public static final char TYPE_MODIFIED
public static final char TYPE_REPLACED
public SVNLogEntryPath(java.lang.String path,
char type,
java.lang.String copyPath,
long copyRevision)
Use char constants of this class as a change type to
pass to this constructor.
path - a path that was changed in a revisiontype - a type of the path change; it can be one of the following:
'M' - Modified, 'A' - Added,
'D' - Deleted, 'R' - ReplacedcopyPath - the path of the ancestor of the item represented
by path (in that case if path
was copied), or null if
pathcopyRevision - the ancestor's revision if the path is a branch,
or -1 if notpublic SVNLogEntryPath(java.lang.String path,
char type,
java.lang.String copyPath,
long copyRevision,
SVNNodeKind kind)
Use char constants of this class as a change type to
pass to this constructor.
path - a path that was changed in a revisiontype - a type of the path change; it can be one of the following:
'M' - Modified, 'A' - Added,
'D' - Deleted, 'R' - ReplacedcopyPath - the path of the ancestor of the item represented
by path (in that case if path
was copied), or null if
pathcopyRevision - the ancestor's revision if the path is a branch,
or -1 if notkind - node kind of the changed pathpublic java.lang.String getCopyPath()
public long getCopyRevision()
public java.lang.String getPath()
public char getType()
public SVNNodeKind getKind()
public void setPath(java.lang.String path)
path - a path of an item that was changed (regarding a definite
revision)protected void setChangeType(char type)
protected void setCopyRevision(long revision)
protected void setCopyPath(java.lang.String path)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - an object to compare withobj
argumentpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2004-2009 TMate Software Ltd. All Rights Reserved.