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
A representation of compared EMF objects with stored matched node Id.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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
Modifier and TypeMethodDescriptionIComparedObjects<org.eclipse.emf.ecore.EObject>
clone()
Clones the compared object containerReturns 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 Details
-
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 Details
-
setRelatedNodeId
public void setRelatedNodeId(long nodeId) Stores the node id the compared objects belong to.- Parameters:
nodeId
- the node id to store
-
getRelatedNodeId
Returns the node id the compared objects belong to.- Returns:
- the related node id or
null
if node set
-
clone
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
-