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 Summary
Constructors 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IComparedObjects<org.eclipse.emf.ecore.EObject>
clone()
Clones the compared object containerLong
getRelatedNodeId()
Returns the node id the compared objects belong to.void
setRelatedNodeId(long nodeId)
Stores the node id the compared objects belong to.-
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, getOrder, getOtherObject, getPath, setComparedObject, setOrder, setPath
-
-
-
-
Constructor Detail
-
MatchedEmfObjects
public MatchedEmfObjects()
Constructs an empty set of matched objects.
-
MatchedEmfObjects
public 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 benull
other
- the other EMF object, can benull
ancestor
- the common ancestor EMF object, can benull
-
-
Method Detail
-
setRelatedNodeId
public void setRelatedNodeId(long nodeId)
Stores the node id the compared objects belong to.- Parameters:
nodeId
- the node id to store
-
getRelatedNodeId
public Long getRelatedNodeId()
Returns the node id the compared objects belong to.- Returns:
- the related node id or
null
if node set
-
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 classComparedObjects<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
-
-