Package org.tigris.subversion.javahl
Class DirEntry
java.lang.Object
org.tigris.subversion.javahl.DirEntry
- All Implemented Interfaces:
java.io.Serializable
public class DirEntry
extends java.lang.Object
implements java.io.Serializable
A general subversion directory entry. Used for SVNClientInterface.list
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe various field values which can be passed to list() -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate java.lang.Stringthe absolute path of the entryprivate booleanflag if the item has properties managed by subversionprivate java.lang.Stringthe name of the author of the last changeprivate longthe date of the last change in nanoseconds since 01/01/1970private longthe revision number of the last changeprivate intthe kind of the node (directory or file)private java.lang.Stringthe pathname of the entryprivate static final longprivate longthe size of the file -
Constructor Summary
ConstructorsConstructorDescriptionDirEntry(java.lang.String path, java.lang.String absPath, int nodeKind, long size, boolean hasProps, long lastChangedRevision, long lastChanged, java.lang.String lastAuthor) this constructor is only called from the JNI codeA backward-compat constructor -
Method Summary
Modifier and TypeMethodDescriptionjava.lang.StringReturns the absolute path of the entry.booleanReturns if the entry has properties managed by Subversion.java.lang.StringReturns the author of the last change.java.util.DateReturns the last time the file was changed.Returns the revision of the last change.longReturns the revision number of the last change.intReturn the kind of entry (file or directory)java.lang.StringgetPath()Returns the path of the entry.longgetSize()Return the length of file test or 0 for directoriesvoidsetPath(java.lang.String path) Set the path.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
lastChanged
private long lastChangedthe date of the last change in nanoseconds since 01/01/1970 -
lastChangedRevision
private long lastChangedRevisionthe revision number of the last change -
hasProps
private boolean hasPropsflag if the item has properties managed by subversion -
lastAuthor
private java.lang.String lastAuthorthe name of the author of the last change -
nodeKind
private int nodeKindthe kind of the node (directory or file) -
size
private long sizethe size of the file -
path
private java.lang.String paththe pathname of the entry -
absPath
private java.lang.String absPaththe absolute path of the entry
-
-
Constructor Details
-
DirEntry
DirEntry(java.lang.String path, java.lang.String absPath, int nodeKind, long size, boolean hasProps, long lastChangedRevision, long lastChanged, java.lang.String lastAuthor) this constructor is only called from the JNI code- Parameters:
path- the pathname of the entryabsPath- the absolute path of the entrynodeKind- the kind of entry (file or directory)size- the size of the filehasProps- if the entry has properties managed by subversionlastChangedRevision- the revision number of the last changelastChanged- the date of the last changelastAuthor- the author of the last change
-
DirEntry
DirEntry(DirEntry aEntry) A backward-compat constructor
-
-
Method Details
-
getPath
public java.lang.String getPath()Returns the path of the entry.- Returns:
- the path of the entry.
-
getAbsPath
public java.lang.String getAbsPath()Returns the absolute path of the entry.- Returns:
- the absolute path of the entry.
-
getLastChanged
public java.util.Date getLastChanged()Returns the last time the file was changed.- Returns:
- the last time the file was changed.
-
getLastChangedRevision
Returns the revision of the last change.- Returns:
- revision of the last change as a Revision object.
-
getLastChangedRevisionNumber
public long getLastChangedRevisionNumber()Returns the revision number of the last change.- Returns:
- revision number of the last change.
-
getHasProps
public boolean getHasProps()Returns if the entry has properties managed by Subversion.- Returns:
- if the entry has properties managed by subversion.
-
getLastAuthor
public java.lang.String getLastAuthor()Returns the author of the last change.- Returns:
- the author of the last change.
-
getNodeKind
public int getNodeKind()Return the kind of entry (file or directory)- Returns:
- the kind of the entry (file or directory) see NodeKind class
-
getSize
public long getSize()Return the length of file test or 0 for directories- Returns:
- length of file text, or 0 for directories
-
setPath
public void setPath(java.lang.String path) Set the path. This should only be used by compatibility wrapper. -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object- Returns:
- The path at its last changed revision.
-