Package com._1c.g5.v8.dt.compare.core
Class TransformingComparedSymlinkProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.core.TransformingComparedSymlinkProvider
-
- All Implemented Interfaces:
IMatchingSymlinks
public abstract class TransformingComparedSymlinkProvider extends Object implements IMatchingSymlinks
An abstract compared symbolic link provider supporting transformation of symbolic links supplied by the specified provider.
-
-
Constructor Summary
Constructors Constructor Description TransformingComparedSymlinkProvider(IMatchingSymlinks baseProvider)
Creates a provider.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getCommonAncestorSymlink()
Returns the symbolic link on the common ancestor side.String
getMainSymlink()
Returns the symbolic link on the main side.String
getOtherSymlink()
Returns the symbolic link on the other side.String
getSymlink(ComparisonSide side)
Returns the symbolic link of the object for the specified side.protected abstract String
transform(ComparisonSide side, String symlink)
Transforms the symbolic link.
-
-
-
Constructor Detail
-
TransformingComparedSymlinkProvider
public TransformingComparedSymlinkProvider(IMatchingSymlinks baseProvider)
Creates a provider.- Parameters:
baseProvider
- the base provider
-
-
Method Detail
-
getCommonAncestorSymlink
public String getCommonAncestorSymlink()
Description copied from interface:IMatchingSymlinks
Returns the symbolic link on the common ancestor side.- Specified by:
getCommonAncestorSymlink
in interfaceIMatchingSymlinks
- Returns:
- common ancestor symlink or
null
-
getMainSymlink
public String getMainSymlink()
Description copied from interface:IMatchingSymlinks
Returns the symbolic link on the main side.- Specified by:
getMainSymlink
in interfaceIMatchingSymlinks
- Returns:
- main symlink or
null
-
getOtherSymlink
public String getOtherSymlink()
Description copied from interface:IMatchingSymlinks
Returns the symbolic link on the other side.- Specified by:
getOtherSymlink
in interfaceIMatchingSymlinks
- Returns:
- other symlink or
null
-
getSymlink
public String getSymlink(ComparisonSide side)
Description copied from interface:IMatchingSymlinks
Returns the symbolic link of the object for the specified side.- Specified by:
getSymlink
in interfaceIMatchingSymlinks
- Parameters:
side
- the side, notnull
- Returns:
- the symbolic link, may be
null
-
transform
protected abstract String transform(ComparisonSide side, String symlink)
Transforms the symbolic link.- Parameters:
side
- the side of the symbolic linksymlink
- the symbolic link- Returns:
- the transformed symbolic link
-
-