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 SummaryConstructors 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 SummaryAll 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.MatchedEmfObjectsgetRelatedNodeId, setRelatedNodeId
 - 
Methods inherited from class com._1c.g5.v8.dt.compare.model.AbstractComparedEmfObjectsgetEClass
 - 
Methods inherited from class com._1c.g5.v8.dt.compare.model.ComparedObjectsgetCommonAncestorObject, getComparedObject, getMainObject, getObjectSide, getOtherObject, getPath, setComparedObject, setOrder, setPath
 
- 
 
- 
- 
- 
Constructor Detail- 
MatchedReferencepublic MatchedReference() Constructs an empty object.
 - 
MatchedReferencepublic 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 be- null
- mainObjects- the matched main object, can be- null
- otherObjects- the matched other object, can be- null
- ancestorObjects- the matched ancestor object, can be- null
 
 
- 
 - 
Method Detail- 
getOrderpublic int getOrder(ComparisonSide side) Returns the order of the objects for the specified side.- Specified by:
- getOrderin interface- IComparedObjects<org.eclipse.emf.ecore.EObject>
- Overrides:
- getOrderin class- ComparedObjects<org.eclipse.emf.ecore.EObject>
- Parameters:
- side- the side
- Returns:
- the order
 
 - 
getSymlinkpublic UniqueSymlink getSymlink(ComparisonSide side) Returns object's symlink for the specified side.- Parameters:
- side- the side
- Returns:
- the symlink
 
 - 
clonepublic IComparedObjects<org.eclipse.emf.ecore.EObject> clone() throws CloneNotSupportedException Description copied from interface:IComparedObjectsClones the compared object container- Specified by:
- clonein interface- IComparedObjects<org.eclipse.emf.ecore.EObject>
- Overrides:
- clonein class- MatchedEmfObjects
- 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
 
 
- 
 
-