Class MatchedReference
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.model.ComparedObjects<T>
-
- com._1c.g5.v8.dt.compare.model.AbstractComparedEmfObjects<org.eclipse.emf.ecore.EObject>
-
- com._1c.g5.v8.dt.compare.model.ComparedEmfObjects
-
- com._1c.g5.v8.dt.compare.matching.MatchedEmfObjects
-
- com._1c.g5.v8.dt.compare.matching.MatchedReference
-
- All Implemented Interfaces:
IComparedObjects<org.eclipse.emf.ecore.EObject>,Cloneable
public class MatchedReference extends MatchedEmfObjects
A tuple of matched objects stored in a reference collection via symbolic links.
-
-
Constructor Summary
Constructors Constructor Description MatchedReference()Constructs an empty object.MatchedReference(ComparedUniqueSymlinks symlinks, org.eclipse.emf.ecore.EObject main, org.eclipse.emf.ecore.EObject other, org.eclipse.emf.ecore.EObject ancestor)Constructs new object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IComparedObjects<org.eclipse.emf.ecore.EObject>clone()Clones the compared object containerintgetOrder(ComparisonSide side)Returns the order of the objects for the specified side.UniqueSymlinkgetSymlink(ComparisonSide side)Returns object's symlink for the specified side.-
Methods inherited from class com._1c.g5.v8.dt.compare.matching.MatchedEmfObjects
getRelatedNodeId, setRelatedNodeId
-
Methods inherited from class com._1c.g5.v8.dt.compare.model.AbstractComparedEmfObjects
getEClass
-
Methods inherited from class com._1c.g5.v8.dt.compare.model.ComparedObjects
getCommonAncestorObject, getComparedObject, getMainObject, getObjectSide, getOtherObject, getPath, setComparedObject, setOrder, setPath
-
-
-
-
Constructor Detail
-
MatchedReference
public MatchedReference()
Constructs an empty object.
-
MatchedReference
public MatchedReference(ComparedUniqueSymlinks symlinks, org.eclipse.emf.ecore.EObject main, org.eclipse.emf.ecore.EObject other, org.eclipse.emf.ecore.EObject ancestor)
Constructs new object.- Parameters:
symlinks- the compared unique symlinks, cannot benullmainObjects- the matched main object, can benullotherObjects- the matched other object, can benullancestorObjects- the matched ancestor object, can benull
-
-
Method Detail
-
getOrder
public int getOrder(ComparisonSide side)
Returns the order of the objects for the specified side.- Specified by:
getOrderin interfaceIComparedObjects<org.eclipse.emf.ecore.EObject>- Overrides:
getOrderin classComparedObjects<org.eclipse.emf.ecore.EObject>- Parameters:
side- the side- Returns:
- the order
-
getSymlink
public UniqueSymlink getSymlink(ComparisonSide side)
Returns object's symlink for the specified side.- Parameters:
side- the side- Returns:
- the symlink
-
clone
public IComparedObjects<org.eclipse.emf.ecore.EObject> clone() throws CloneNotSupportedException
Description copied from interface:IComparedObjectsClones the compared object container- Specified by:
clonein interfaceIComparedObjects<org.eclipse.emf.ecore.EObject>- Overrides:
clonein classMatchedEmfObjects- Returns:
- A new instance of the container of the same class. Never
null. Internal data should be eligible for safe changes by the caller side - Throws:
CloneNotSupportedException- In case if cloning isn't supported
-
-