Package de.gebit.integrity.utils

## Class ModelSourceUtil

- java.lang.Object
- - de.gebit.integrity.utils.ModelSourceUtil

-     public final class ModelSourceUtil
      extends Object

  This utility class contains helper methods for various tasks of determining information about the Integrity model source files.
  Author:
    Rene Schneider - initial API and implementation

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static String` | `getSourceFilePathForEObject​(org.eclipse.emf.ecore.EObject anObject)` | Finds the path to the source file in which the given `EObject` is defined.
    `static String` | `getSourceFilePathForINode​(org.eclipse.xtext.nodemodel.INode aNode)` | Finds the path to the source file in which the given `INode` is defined.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getSourceFilePathForEObject

          public static String getSourceFilePathForEObject​(org.eclipse.emf.ecore.EObject anObject)

      Finds the path to the source file in which the given `EObject` is defined.
      Parameters:
        `anObject` - the object
      Returns:
        the path or null if not determinable

    - #### getSourceFilePathForINode

          public static String getSourceFilePathForINode​(org.eclipse.xtext.nodemodel.INode aNode)

      Finds the path to the source file in which the given `INode` is defined.
      Parameters:
        `aNode` - the node
      Returns:
        the path