Package org.tmatesoft.svn.core.wc.admin
Class SVNAdminPath
java.lang.Object
org.tmatesoft.svn.core.wc.admin.SVNAdminPath
The SVNAdminPath is used to pass path information
to ISVNHistoryHandler and ISVNTreeHandler
- Since:
- 1.2
- Version:
- 1.3
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSVNAdminPath
(String path, String nodeID, int treeDepth, boolean isDir) Constructs a new instance of this class that is intended forISVNTreeHandler
.SVNAdminPath
(String path, String nodeID, long revision) Constructs a new instance of this class that is intended forISVNHistoryHandler
. -
Method Summary
Modifier and TypeMethodDescriptionReturns a node revision id.getPath()
Returns an absolute path.long
Returns a revision number.int
Returns a tree depth for this path which is relative to the depth of theSVNLookClient.doGetTree(...)
target path.boolean
isDir()
Says whetherpath
is a directory or a file.
-
Field Details
-
myPath
-
myNodeID
-
myRevision
private long myRevision -
myTreeDepth
private int myTreeDepth -
myIsDir
private boolean myIsDir
-
-
Constructor Details
-
SVNAdminPath
Constructs a new instance of this class that is intended forISVNHistoryHandler
.- Parameters:
path
- an absolute repository pathnodeID
- a node revision id (optional)revision
- a revision
-
SVNAdminPath
Constructs a new instance of this class that is intended forISVNTreeHandler
.- Parameters:
path
- an absolute repository pathnodeID
- a node revision id (optional)treeDepth
- the depth at whichpath
is located in the treeisDir
- says whetherpath
is a directory or a file
-
-
Method Details
-
isDir
public boolean isDir()Says whetherpath
is a directory or a file. This information is relevant only forISVNTreeHandler
.- Returns:
- true for a directory, false for a file
-
getNodeID
Returns a node revision id. This information is relevant for bothISVNTreeHandler
andISVNHistoryHandler
.- Returns:
- a node revision id
-
getPath
Returns an absolute path.- Returns:
- an absolute path that starts with
'/'
-
getRevision
public long getRevision()Returns a revision number. This information is relevant only forISVNHistoryHandler
.- Returns:
- a revision number
-
getTreeDepth
public int getTreeDepth()Returns a tree depth for this path which is relative to the depth of theSVNLookClient.doGetTree(...)
target path. Target path which is passed toSVNLookClient.doGetTree(...)
starts at depth 0. Then depth is incremented with every other segment of path.This information is relevant only for
ISVNTreeHandler
.- Returns:
- a tree depth
-