|
SVNKit Home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tmatesoft.svn.core.SVNDirEntry
The SVNDirEntry class is a representation of a versioned directory entry.
SVNDirEntry keeps an entry name, entry kind (is it a file or directory), file size (in case an entry is a file), the last changed revision, the date when the entry was last changed, the name of the author who last changed the entry, the commit log message for the last changed revision. SVNDirEntry also knows if the entry has any properties.
ISVNDirEntryHandler
Constructor Summary | |
SVNDirEntry(SVNURL url,
String name,
SVNNodeKind kind,
long size,
boolean hasProperties,
long revision,
Date createdDate,
String lastAuthor)
Constructs an instance of SVNDirEntry. |
|
SVNDirEntry(SVNURL url,
String name,
SVNNodeKind kind,
long size,
boolean hasProperties,
long revision,
Date createdDate,
String lastAuthor,
String commitMessage)
Constructs an instance of SVNDirEntry. |
Method Summary | |
int |
compareTo(Object o)
Compares this object with another one. |
String |
getAuthor()
Retrieves the name of the author who last changed this entry. |
String |
getCommitMessage()
Returns the commit log message for the revision of this entry. |
Date |
getDate()
Returns the date the entry was last changed. |
SVNNodeKind |
getKind()
Returns the entry node kind. |
SVNLock |
getLock()
Gets the lock object for this entry (if it's locked). |
String |
getName()
Gets the the directory entry name |
String |
getPath()
Deprecated. use getRelativePath() instead. |
String |
getRelativePath()
Returns the entry's path. |
long |
getRevision()
Gets the last changed revision of this entry. |
long |
getSize()
Returns the file size in bytes (if this entry is a file). |
SVNURL |
getURL()
Returns the entry's URL. |
boolean |
hasProperties()
Tells if the entry has any properties. |
void |
setCommitMessage(String message)
This method is used by SVNKit internals and not intended for users (from an API point of view). |
void |
setLock(SVNLock lock)
Sets the lock object for this entry (if it's locked). |
void |
setRelativePath(String path)
This method is used by SVNKit internals and not intended for users (from an API point of view). |
long |
size()
Deprecated. use getSize() instead |
String |
toString()
Retirns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SVNDirEntry(SVNURL url, String name, SVNNodeKind kind, long size, boolean hasProperties, long revision, Date createdDate, String lastAuthor)
url
- a url of this entryname
- an entry namekind
- the node kind for the entrysize
- the entry size in byteshasProperties
- true if the
entry has properties, otherwise falserevision
- the last changed revision of the entrycreatedDate
- the date the entry was last changedlastAuthor
- the person who last changed the entrypublic SVNDirEntry(SVNURL url, String name, SVNNodeKind kind, long size, boolean hasProperties, long revision, Date createdDate, String lastAuthor, String commitMessage)
url
- a url of this entryname
- an entry namekind
- the node kind for the entrysize
- the entry size in byteshasProperties
- true if the
entry has properties, otherwise falserevision
- the last changed revision of the entrycreatedDate
- the date the entry was last changedlastAuthor
- the person who last changed the entrycommitMessage
- the log message of the last change commitMethod Detail |
public SVNURL getURL()
public String getName()
public long getSize()
public long size()
getSize()
instead
public boolean hasProperties()
public SVNNodeKind getKind()
SVNNodeKind
public Date getDate()
public long getRevision()
public String getAuthor()
public String getRelativePath()
This method always returns the name of an entry (i.e.
a path relative to the parent folder) when an SVNDirEntry
object is provided by an SVNRepository
driver.
This property (relative path) is longer than just an entry name only when
an SVNDirEntry object is obtained via a recursive call to
a doList()
method of the SVNLogClient
class.
In that case an SVNDirEntry object located deep in the hierarchy
will return a path relative to the URL doList()
was called for.
public String getPath()
getRelativePath()
instead.
public String getCommitMessage()
public SVNLock getLock()
public void setRelativePath(String path)
path
- this entry's pathpublic void setCommitMessage(String message)
message
- a commit messagepublic void setLock(SVNLock lock)
lock
- a lock objectpublic String toString()
public int compareTo(Object o)
compareTo
in interface Comparable
o
- an object to compare with
o
is either null,
or is not an instance of SVNDirEntry, or this entry's URL is lexicographically
less than the name of o
;
o
;
o
has got the same URL as this one has
|
SVNKit Home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |