Class PathPart


  • public final class PathPart
    extends Object
    Represents part of a path between two nodes in the comparison tree.
    • Field Detail

      • feature

        public final org.eclipse.emf.ecore.EStructuralFeature feature
      • position

        public final int position
    • Constructor Detail

      • PathPart

        public PathPart​(org.eclipse.emf.ecore.EStructuralFeature feature,
                        int position)
        Creates new path part.
        Parameters:
        feature - the feature related to the node, cannot be null
        position - the position of the node in many-feature parent or -1
    • Method Detail

      • getObject

        public org.eclipse.emf.ecore.EObject getObject​(org.eclipse.emf.ecore.EObject parent)
        Returns object under stored path part.
        Parameters:
        parent - the parent model object, cannot be null
        Returns:
        the child model object accessed by the stored path part, never null