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 containerint
getOrder(ComparisonSide side)
Returns the order of the objects for the specified side.UniqueSymlink
getSymlink(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 benull
mainObjects
- the matched main object, can benull
otherObjects
- the matched other object, can benull
ancestorObjects
- 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:
getOrder
in interfaceIComparedObjects<org.eclipse.emf.ecore.EObject>
- Overrides:
getOrder
in 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:IComparedObjects
Clones the compared object container- Specified by:
clone
in interfaceIComparedObjects<org.eclipse.emf.ecore.EObject>
- Overrides:
clone
in 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
-
-