| java.lang.Object org.tmatesoft.svn.core.SVNLogEntryPath
All known Subclasses: org.tmatesoft.svn.core.internal.io.fs.FSPathChange,
SVNLogEntryPath | public class SVNLogEntryPath implements Serializable(Code) | | The SVNLogEntryPath class encapsulates information about a single
item changed in a revision. This information includes an item's path, a
type of the changes made to the item, and if the item is a copy of another
one - information about the item's ancestor.
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 author: TMate Software Ltd. See Also: SVNLogEntry |
Field Summary | |
final public static char | TYPE_ADDED Char 'A' (item added). | final public static char | TYPE_DELETED Char 'D' (item deleted). | final public static char | TYPE_MODIFIED Char 'M' (item modified). | final public static char | TYPE_REPLACED Char 'R' (item replaced). |
Constructor Summary | |
public | SVNLogEntryPath(String path, char type, String copyPath, long copyRevision) Constructs an SVNLogEntryPath object. |
Method Summary | |
public boolean | equals(Object obj) Compares this object with another one. | public String | getCopyPath() Returns the path of the ancestor of the item represented
by this object. | public long | getCopyRevision() Returns the revision of the ancestor of the item represented by this
object. | public String | getPath() Returns the path of the item represented by this object. | public char | getType() Gets the type of the change applied to the item represented by this
object. | public 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) | public void | setPath(String path) Sets the path of the item represented by this object. | public String | toString() Gives a string representation of this oobject. |
TYPE_ADDED | final public static char TYPE_ADDED(Code) | | Char 'A' (item added).
|
TYPE_DELETED | final public static char TYPE_DELETED(Code) | | Char 'D' (item deleted).
|
TYPE_MODIFIED | final public static char TYPE_MODIFIED(Code) | | Char 'M' (item modified).
|
TYPE_REPLACED | final public static char TYPE_REPLACED(Code) | | Char 'R' (item replaced).
|
SVNLogEntryPath | public SVNLogEntryPath(String path, char type, String copyPath, long copyRevision)(Code) | | Constructs an SVNLogEntryPath object.
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 Parameters: type - a type of the path change; it can be one of the following: 'M' - Modified, 'A' - Added, 'D' - Deleted, 'R' - Replaced Parameters: copyPath - the path of the ancestor of the item represented by path (in that case if path was copied), or null ifpath Parameters: copyRevision - the ancestor's revision if the path is a branch,or -1 if not |
equals | public boolean equals(Object obj)(Code) | | Compares this object with another one.
Parameters: obj - an object to compare with true if this object is the same as the obj argument |
getCopyPath | public String getCopyPath()(Code) | | Returns the path of the ancestor of the item represented
by this object.
the origin path from where the item, represented by thisobject, was copied, or null if it wasn't copied |
getCopyRevision | public long getCopyRevision()(Code) | | Returns the revision of the ancestor of the item represented by this
object.
the revision of the origin path from where the item, represented by this object, was copied, or -1 if the itemwas not copied |
getPath | public String getPath()(Code) | | Returns the path of the item represented by this object.
the changed path represented by this object |
getType | public char getType()(Code) | | Gets the type of the change applied to the item represented by this
object. This type can be one of the following:
'M' - Modified,
'A' - Added,
'D' - Deleted,
'R' - Replaced (what means that the
object is first deleted, then another object of the same name is
added, all within a single revision).
a type of the change as a char label |
hashCode | public int hashCode()(Code) | | Calculates and returns a hash code for this object.
a hash code |
setChangeType | protected void setChangeType(char type)(Code) | | |
setCopyRevision | protected void setCopyRevision(long revision)(Code) | | |
setPath | public void setPath(String path)(Code) | | Sets the path of the item represented by this object.
Parameters: path - a path of an item that was changed (regarding a definiterevision) |
toString | public String toString()(Code) | | Gives a string representation of this oobject.
a string representing this object |
|
|