org.tmatesoft.svn.core.wc.admin

Class SVNAdminPath

public class SVNAdminPath extends Object

The SVNAdminPath is used to pass path information to ISVNHistoryHandler and ISVNTreeHandler

Since: 1.1.1

Version: 1.1.1

Author: TMate Software Ltd.

Constructor Summary
SVNAdminPath(String path, String nodeID, long revision)
Constructs a new instance of this class that is intended for ISVNHistoryHandler.
SVNAdminPath(String path, String nodeID, int treeDepth, boolean isDir)
Constructs a new instance of this class that is intended for ISVNTreeHandler.
Method Summary
StringgetNodeID()
Returns a node revision id.
StringgetPath()
Returns an absolute path.
longgetRevision()
Returns a revision number.
intgetTreeDepth()
Returns a tree depth for this path.
booleanisDir()
Says whether path is a directory or a file.

Constructor Detail

SVNAdminPath

public SVNAdminPath(String path, String nodeID, long revision)
Constructs a new instance of this class that is intended for ISVNHistoryHandler.

Parameters: path an absolute repository path nodeID a node revision id (optional) revision a revision

SVNAdminPath

public SVNAdminPath(String path, String nodeID, int treeDepth, boolean isDir)
Constructs a new instance of this class that is intended for ISVNTreeHandler.

Parameters: path an absolute repository path nodeID a node revision id (optional) treeDepth the depth at which path is located in the tree isDir says whether path is a directory or a file

Method Detail

getNodeID

public String getNodeID()
Returns a node revision id. This information is relevant for both ISVNTreeHandler and ISVNHistoryHandler.

Returns: a node revision id

getPath

public String 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 for ISVNHistoryHandler.

Returns: a revision number

getTreeDepth

public int getTreeDepth()
Returns a tree depth for this path. Repository root "/" starts at depth 0. Depth is incremented with every other segment of path.

This information is relevant only for ISVNTreeHandler.

Returns: a tree depth

isDir

public boolean isDir()
Says whether path is a directory or a file. This information is relevant only for ISVNTreeHandler.

Returns: true for a directory, false for a file

Copyright © 2004-2007 TMate Software Ltd. All Rights Reserved.