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 containerintgetOrder(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, setRelatedNodeIdMethods inherited from class com._1c.g5.v8.dt.compare.model.AbstractComparedEmfObjects
getEClassMethods 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 benullmainObjects- the matched main object, can benullotherObjects- the matched other object, can benullancestorObjects- the matched ancestor object, can benull
-
-
Method Details
-
getOrder
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
Returns object's symlink for the specified side.- Parameters:
side- the side- Returns:
- the symlink
-
clone
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
-