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
A tuple of matched objects stored in a reference collection via symbolic links.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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
Modifier and TypeMethodDescriptionIComparedObjects<org.eclipse.emf.ecore.EObject>
clone()
Clones the compared object containerint
getOrder
(ComparisonSide side) Returns the order of the objects for the specified side.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 Details
-
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 Details
-
getOrder
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
Returns object's symlink for the specified side.- Parameters:
side
- the side- Returns:
- the symlink
-
clone
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
-