Class DirEntry
java.lang.Object
org.apache.subversion.javahl.types.DirEntry
- All Implemented Interfaces:
Serializable
A general subversion directory entry. Used for
ISVNClient.list(java.lang.String, org.apache.subversion.javahl.types.Revision, org.apache.subversion.javahl.types.Revision, org.apache.subversion.javahl.types.Depth, int, boolean, org.apache.subversion.javahl.callback.ListCallback)
.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
The various field values which can be passed to list() -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
the absolute path of the entryprivate boolean
flag if the item has properties managed by subversionprivate String
the name of the author of the last changeprivate long
the date of the last change in nanoseconds since 01/01/1970private long
the revision number of the last changeprivate NodeKind
the kind of the node (directory or file)private String
the pathname of the entryprivate static final long
private long
the size of the file -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the absolute path of the entry.boolean
Returns if the entry has properties managed by Subversion.Returns the author of the last change.Returns the last time the file was changed.Returns the revision of the last change.long
Returns the revision number of the last change.Return the kind of entry (file or directory)getPath()
Returns the path of the entry.long
getSize()
Return the length of file test or 0 for directoriesvoid
Set the path.toString()
-
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
the name of the author of the last change -
nodeKind
the kind of the node (directory or file) -
size
private long sizethe size of the file -
path
the pathname of the entry -
absPath
the absolute path of the entry
-
-
Constructor Details
-
DirEntry
public DirEntry(String path, String absPath, NodeKind nodeKind, long size, boolean hasProps, long lastChangedRevision, long lastChanged, 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
-
-
Method Details
-
getPath
Returns the path of the entry.- Returns:
- the path of the entry.
-
getAbsPath
Returns the absolute path of the entry.- Returns:
- the absolute path of the entry.
-
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
Returns the author of the last change.- Returns:
- the author of the last change.
-
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
Set the path. This should only be used by compatibility wrapper. -
toString
-