C# Class CmisSync.Lib.PathMatcher.PathMatcher

Path matcher.
Inheritance: IPathMatcher
显示文件 Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
CanCreateLocalPath ( IDocument remoteDocument ) : bool

Determines whether this instance can create local path for specified remotePath.

CanCreateLocalPath ( IFolder remoteFolder ) : bool

Determines whether this instance can create local path for specified remotePath.

CanCreateLocalPath ( string remotePath ) : bool

Determines whether this instance can create local path for specified remotePath.

CanCreateRemotePath ( DirectoryInfo localDirectory ) : bool

Determines whether this instance can create remote path for specified localFile.

CanCreateRemotePath ( FileInfo localFile ) : bool

Determines whether this instance can create remote path for specified localFile.

CanCreateRemotePath ( string localPath ) : bool

Determines whether this instance can create remote path for specified localFile.

CreateLocalPath ( IDocument remoteDocument ) : string

Creates the corresponding local path.

CreateLocalPath ( IFolder remoteFolder ) : string

Creates the corresponding local path.

CreateLocalPath ( string remotePath ) : string

Creates the corresponding local path.

CreateLocalPaths ( IDocument remoteDocument ) : List

Creates the corresponding local paths.

CreateRemotePath ( DirectoryInfo localDirectory ) : string

Creates the remote pat.

CreateRemotePath ( FileInfo localFile ) : string

Creates the corresponding remote path.

CreateRemotePath ( string localPath ) : string

Creates the corresponding remote path.

GetRelativeLocalPath ( string localPath ) : string

Gets the relative local path.

Matches ( IDirectoryInfo localFolder, IFolder remoteFolder ) : bool

Matches the specified localPath and remotePath.

Matches ( string localPath, IFolder remoteFolder ) : bool

Matches the specified localPath and remotePath.

Matches ( string localPath, string remotePath ) : bool

Matches the specified localPath and remotePath.

PathMatcher ( string localTargetRootPath, string remoteTargetRootPath ) : System

Initializes a new instance of the PathMatcher class.

Method Details

CanCreateLocalPath() public method

Determines whether this instance can create local path for specified remotePath.
public CanCreateLocalPath ( IDocument remoteDocument ) : bool
remoteDocument IDocument Remote document.
return bool

CanCreateLocalPath() public method

Determines whether this instance can create local path for specified remotePath.
public CanCreateLocalPath ( IFolder remoteFolder ) : bool
remoteFolder IFolder Remote folder.
return bool

CanCreateLocalPath() public method

Determines whether this instance can create local path for specified remotePath.
public CanCreateLocalPath ( string remotePath ) : bool
remotePath string Remote path.
return bool

CanCreateRemotePath() public method

Determines whether this instance can create remote path for specified localFile.
public CanCreateRemotePath ( DirectoryInfo localDirectory ) : bool
localDirectory System.IO.DirectoryInfo Local directory.
return bool

CanCreateRemotePath() public method

Determines whether this instance can create remote path for specified localFile.
public CanCreateRemotePath ( FileInfo localFile ) : bool
localFile System.IO.FileInfo Local file.
return bool

CanCreateRemotePath() public method

Determines whether this instance can create remote path for specified localFile.
public CanCreateRemotePath ( string localPath ) : bool
localPath string Local path.
return bool

CreateLocalPath() public method

Creates the corresponding local path.
public CreateLocalPath ( IDocument remoteDocument ) : string
remoteDocument IDocument Remote document.
return string

CreateLocalPath() public method

Creates the corresponding local path.
public CreateLocalPath ( IFolder remoteFolder ) : string
remoteFolder IFolder Remote folder.
return string

CreateLocalPath() public method

Creates the corresponding local path.
public CreateLocalPath ( string remotePath ) : string
remotePath string Remote path.
return string

CreateLocalPaths() public method

Creates the corresponding local paths.
public CreateLocalPaths ( IDocument remoteDocument ) : List
remoteDocument IDocument Remote document.
return List

CreateRemotePath() public method

Creates the remote pat.
public CreateRemotePath ( DirectoryInfo localDirectory ) : string
localDirectory System.IO.DirectoryInfo Local directory.
return string

CreateRemotePath() public method

Creates the corresponding remote path.
public CreateRemotePath ( FileInfo localFile ) : string
localFile System.IO.FileInfo Local file.
return string

CreateRemotePath() public method

Creates the corresponding remote path.
public CreateRemotePath ( string localPath ) : string
localPath string Local path.
return string

GetRelativeLocalPath() public method

Gets the relative local path.
public GetRelativeLocalPath ( string localPath ) : string
localPath string Local path.
return string

Matches() public method

Matches the specified localPath and remotePath.
public Matches ( IDirectoryInfo localFolder, IFolder remoteFolder ) : bool
localFolder IDirectoryInfo Local folder.
remoteFolder IFolder Remote folder.
return bool

Matches() public method

Matches the specified localPath and remotePath.
public Matches ( string localPath, IFolder remoteFolder ) : bool
localPath string Local path.
remoteFolder IFolder Remote folder.
return bool

Matches() public method

Matches the specified localPath and remotePath.
public Matches ( string localPath, string remotePath ) : bool
localPath string Local path.
remotePath string Remote path.
return bool

PathMatcher() public method

Initializes a new instance of the PathMatcher class.
public PathMatcher ( string localTargetRootPath, string remoteTargetRootPath ) : System
localTargetRootPath string Local target root path.
remoteTargetRootPath string Remote target root path.
return System