| java.lang.Object org.tmatesoft.svn.core.SVNDirEntry
SVNDirEntry | public class SVNDirEntry implements Comparable(Code) | | 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.
version: 1.1.1 author: TMate Software Ltd. See Also: ISVNDirEntryHandler |
Constructor Summary | |
public | SVNDirEntry(SVNURL url, String name, SVNNodeKind kind, long size, boolean hasProperties, long revision, Date createdDate, String lastAuthor) Constructs an instance of SVNDirEntry. | public | 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 | |
public int | compareTo(Object o) Compares this object with another one. | public String | getAuthor() Retrieves the name of the author who last changed this entry. | public String | getCommitMessage() Returns the commit log message for the revision of this entry. | public Date | getDate() Returns the date the entry was last changed. | public SVNNodeKind | getKind() Returns the entry node kind. | public SVNLock | getLock() Gets the lock object for this entry (if it's locked). | public String | getName() | public String | getPath() | public String | getRelativePath() Returns the entry's path.
This method always returns the name of an entry (i.e. | public long | getRevision() Gets the last changed revision of this entry. | public long | getSize() Returns the file size in bytes (if this entry is a file). | public SVNURL | getURL() Returns the entry's URL. | public boolean | hasProperties() Tells if the entry has any properties. | public void | setCommitMessage(String message) This method is used by SVNKit internals and not intended for users (from an API point of view). | public void | setLock(SVNLock lock) Sets the lock object for this entry (if it's locked). | public void | setRelativePath(String path) This method is used by SVNKit internals and not intended for users (from an API point of view). | public long | size() Returns the file size in bytes (if this entry is a file). | public String | toString() Retirns a string representation of this object. |
SVNDirEntry | public SVNDirEntry(SVNURL url, String name, SVNNodeKind kind, long size, boolean hasProperties, long revision, Date createdDate, String lastAuthor)(Code) | | Constructs an instance of SVNDirEntry.
Parameters: url - a url of this entry Parameters: name - an entry name Parameters: kind - the node kind for the entry Parameters: size - the entry size in bytes Parameters: hasProperties - true if the entry has properties, otherwise false Parameters: revision - the last changed revision of the entry Parameters: createdDate - the date the entry was last changed Parameters: lastAuthor - the person who last changed the entry |
SVNDirEntry | public SVNDirEntry(SVNURL url, String name, SVNNodeKind kind, long size, boolean hasProperties, long revision, Date createdDate, String lastAuthor, String commitMessage)(Code) | | Constructs an instance of SVNDirEntry.
Parameters: url - a url of this entry Parameters: name - an entry name Parameters: kind - the node kind for the entry Parameters: size - the entry size in bytes Parameters: hasProperties - true if the entry has properties, otherwise false Parameters: revision - the last changed revision of the entry Parameters: createdDate - the date the entry was last changed Parameters: lastAuthor - the person who last changed the entry Parameters: commitMessage - the log message of the last change commit |
compareTo | public int compareTo(Object o)(Code) | | Compares this object with another one.
Parameters: o - an object to compare with - -1 - if
o is either null,or is not an instance of SVNDirEntry, or this entry's URL is lexicographically less than the name of o ; - 1 - if this entry's URL is lexicographically greater than the name of
o ; - 0 - if and only if
o has got the same URL as this one has
|
getAuthor | public String getAuthor()(Code) | | Retrieves the name of the author who last changed this entry.
the last author's name. |
getCommitMessage | public String getCommitMessage()(Code) | | Returns the commit log message for the revision of this entry.
a commit log message |
getDate | public Date getDate()(Code) | | Returns the date the entry was last changed.
the datestamp when the entry was last changed |
getLock | public SVNLock getLock()(Code) | | Gets the lock object for this entry (if it's locked).
a lock object or null |
getName | public String getName()(Code) | | Gets the the directory entry name
the name of this entry |
getRelativePath | public String getRelativePath()(Code) | | Returns the entry's path.
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
org.tmatesoft.svn.core.io.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
org.tmatesoft.svn.core.wc.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.
a path relative to a repository location or null if no path isspecified |
getRevision | public long getRevision()(Code) | | Gets the last changed revision of this entry.
the revision of this entry when it was last changed |
getSize | public long getSize()(Code) | | Returns the file size in bytes (if this entry is a file).
the size of this entry in bytes |
getURL | public SVNURL getURL()(Code) | | Returns the entry's URL.
this entry's URL. |
hasProperties | public boolean hasProperties()(Code) | | Tells if the entry has any properties.
true if has, false otherwise |
setCommitMessage | public void setCommitMessage(String message)(Code) | | This method is used by SVNKit internals and not intended for users (from an API point of view).
Parameters: message - a commit message |
setLock | public void setLock(SVNLock lock)(Code) | | Sets the lock object for this entry (if it's locked).
Parameters: lock - a lock object |
setRelativePath | public void setRelativePath(String path)(Code) | | This method is used by SVNKit internals and not intended for users (from an API point of view).
Parameters: path - this entry's path |
size | public long size()(Code) | | Returns the file size in bytes (if this entry is a file).
SVNDirEntry.getSize() the size of this entry in bytes |
toString | public String toString()(Code) | | Retirns a string representation of this object.
a string representation of this directory entry |
|
|