Package de.gebit.integrity.utils
Class ModelSourceUtil
- java.lang.Object
-
- de.gebit.integrity.utils.ModelSourceUtil
-
public final class ModelSourceUtil extends java.lang.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 java.lang.String
getSourceFilePathForEObject(org.eclipse.emf.ecore.EObject anObject)
Finds the path to the source file in which the givenEObject
is defined.static java.lang.String
getSourceFilePathForINode(org.eclipse.xtext.nodemodel.INode aNode)
Finds the path to the source file in which the givenINode
is defined.
-
-
-
Method Detail
-
getSourceFilePathForEObject
public static java.lang.String getSourceFilePathForEObject(org.eclipse.emf.ecore.EObject anObject)
Finds the path to the source file in which the givenEObject
is defined.- Parameters:
anObject
- the object- Returns:
- the path or null if not determinable
-
getSourceFilePathForINode
public static java.lang.String getSourceFilePathForINode(org.eclipse.xtext.nodemodel.INode aNode)
Finds the path to the source file in which the givenINode
is defined.- Parameters:
aNode
- the node- Returns:
- the path
-
-