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.voidsetRelatedNodeId(long nodeId) Stores the node id the compared objects belong to.Methods 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, 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 benullother- the other EMF object, can benullancestor- 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
nullif node set
-
clone
Description copied from interface:IComparedObjectsClones the compared object container- Specified by:
clonein interfaceIComparedObjects<org.eclipse.emf.ecore.EObject>- Overrides:
clonein 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
-