Class MatchedEmfObjects
- 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
 
 
 
 
- 
- All Implemented Interfaces:
- IComparedObjects<org.eclipse.emf.ecore.EObject>,- Cloneable
 - Direct Known Subclasses:
- MatchedReference
 
 public class MatchedEmfObjects extends ComparedEmfObjects A representation of compared EMF objects with stored matched node Id.
- 
- 
Constructor SummaryConstructors Constructor Description MatchedEmfObjects()Constructs an empty set of matched objects.MatchedEmfObjects(org.eclipse.emf.ecore.EObject main, org.eclipse.emf.ecore.EObject other, org.eclipse.emf.ecore.EObject ancestor)Constructs matched objects set.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IComparedObjects<org.eclipse.emf.ecore.EObject>clone()Clones the compared object containerLonggetRelatedNodeId()Returns the node id the compared objects belong to.voidsetRelatedNodeId(long nodeId)Stores the node id the compared objects belong to.- 
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, getOrder, getOtherObject, getPath, setComparedObject, setOrder, setPath
 
- 
 
- 
- 
- 
Constructor Detail- 
MatchedEmfObjectspublic MatchedEmfObjects() Constructs an empty set of matched objects.
 - 
MatchedEmfObjectspublic MatchedEmfObjects(org.eclipse.emf.ecore.EObject main, org.eclipse.emf.ecore.EObject other, org.eclipse.emf.ecore.EObject ancestor)Constructs matched objects set.- Parameters:
- main- the main EMF object, can be- null
- other- the other EMF object, can be- null
- ancestor- the common ancestor EMF object, can be- null
 
 
- 
 - 
Method Detail- 
setRelatedNodeIdpublic void setRelatedNodeId(long nodeId) Stores the node id the compared objects belong to.- Parameters:
- nodeId- the node id to store
 
 - 
getRelatedNodeIdpublic Long getRelatedNodeId() Returns the node id the compared objects belong to.- Returns:
- the related node id or nullif node set
 
 - 
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- ComparedObjects<org.eclipse.emf.ecore.EObject>
- 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
 
 
- 
 
-