Package com._1c.g5.v8.dt.compare.model
Class ComparedSymlinks
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.model.ComparedObjects<String>
-
- com._1c.g5.v8.dt.compare.model.ComparedSymlinks
-
- All Implemented Interfaces:
IComparedObjects<String>
,IMatchingSymlinks
,Cloneable
public class ComparedSymlinks extends ComparedObjects<String> implements IMatchingSymlinks
An object representing a tuple of compared symbolic links.
-
-
Constructor Summary
Constructors Constructor Description ComparedSymlinks()
Constructs an empty object.ComparedSymlinks(ReferencedObjectsComparisonNode node)
Constructs an object with compared symbolic links for the provided node.ComparedSymlinks(String mainSymlink, String otherSymlink, String ancestorSymlink)
Constructs an object with compared symbolic links.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
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.int
hashCode()
-
Methods inherited from class com._1c.g5.v8.dt.compare.model.ComparedObjects
clone, getCommonAncestorObject, getComparedObject, getMainObject, getObjectSide, getOrder, getOtherObject, getPath, setComparedObject, setOrder, setPath
-
-
-
-
Constructor Detail
-
ComparedSymlinks
public ComparedSymlinks(ReferencedObjectsComparisonNode node)
Constructs an object with compared symbolic links for the provided node.- Parameters:
node
- the node to construct the object for, notnull
-
ComparedSymlinks
public ComparedSymlinks(String mainSymlink, String otherSymlink, String ancestorSymlink)
Constructs an object with compared symbolic links.- Parameters:
mainSymlink
- the main symbolic link, may benull
otherSymlink
- the other symbolic link, may benull
ancestorSymlink
- the common ancestor symbolic link, may benull
-
ComparedSymlinks
public ComparedSymlinks()
Constructs an empty object.
-
-
Method Detail
-
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
-
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
-
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
-
-