Package com.e1c.g5.v8.dt.check
Class DirectLocation
java.lang.Object
com.e1c.g5.v8.dt.check.DirectLocation
Direct location specification for the region that caused a validation incident. Used to perform complex validation
scenarios with custom definition of the affected region in the Xtext document or to support the marking of non-semantic
elements (like documenting comments, etc)
-
Constructor Summary
ConstructorsConstructorDescriptionDirectLocation
(Integer offset, Integer length, Integer lineNumber, org.eclipse.emf.ecore.EObject causer) Constructs an instance of the direct location -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.ecore.EObject
Gets the causer of the issueGets the length of the selected regionGets the starting line number of the regionGets the absolute offset of the region starting from the beginning of the language file
-
Constructor Details
-
DirectLocation
public DirectLocation(Integer offset, Integer length, Integer lineNumber, org.eclipse.emf.ecore.EObject causer) Constructs an instance of the direct location- Parameters:
offset
- The starting location to construct, absolute offset in the xtext file. May not benull
length
- The length of the location. May not benull
lineNumber
- The line number, starting from 1. May benull
causer
- The semantic model element that is a real cause of the problem. Used for the navigation in the Xtext editor. May be leftnull
if no navigation form the marker is necessary
-
-
Method Details
-
getCauser
public org.eclipse.emf.ecore.EObject getCauser()Gets the causer of the issue- Returns:
- The causer. May be
null
-
getLength
Gets the length of the selected region- Returns:
- The length of the region. May not be
null
-
getLineNumber
Gets the starting line number of the region- Returns:
- The starting line of the number. May be
null
-
getOffset
Gets the absolute offset of the region starting from the beginning of the language file- Returns:
- The offset. May not be
null
-