Class PathPart

java.lang.Object
com._1c.g5.v8.dt.compare.ui.util.PathPart

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

    Fields
    Modifier and Type
    Field
    Description
    final org.eclipse.emf.ecore.EStructuralFeature
     
    final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PathPart(org.eclipse.emf.ecore.EStructuralFeature feature, int position)
    Creates new path part.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.emf.ecore.EObject
    getObject(org.eclipse.emf.ecore.EObject parent)
    Returns object under stored path part.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • feature

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

      public final int position
  • Constructor Details

    • 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 Details

    • 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