org.eclipse.cosmos.rm.validation.internal.artifacts
Class ElementLocation
java.lang.Object
org.eclipse.cosmos.rm.validation.internal.artifacts.ElementLocation
- All Implemented Interfaces:
- java.lang.Comparable
- Direct Known Subclasses:
- ElementModel
public class ElementLocation
- extends java.lang.Object
- implements java.lang.Comparable
Used to store location detail about an element
|
Constructor Summary |
ElementLocation(java.lang.String filePath,
int lineNumber)
|
ElementLocation(java.lang.String filePath,
int lineNumber,
int columnNumber)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementLocation
public ElementLocation(java.lang.String filePath,
int lineNumber)
ElementLocation
public ElementLocation(java.lang.String filePath,
int lineNumber,
int columnNumber)
getFilePath
public java.lang.String getFilePath()
- Returns:
- the filePath
setFilePath
public void setFilePath(java.lang.String filePath)
- Parameters:
filePath - the filePath to set
getLineNumber
public int getLineNumber()
- Returns:
- the lineNumber
setLineNumber
public void setLineNumber(int lineNumber)
- Parameters:
lineNumber - the lineNumber to set
getColumnNumber
public int getColumnNumber()
- Returns:
- the columnNumber
setColumnNumber
public void setColumnNumber(int columnNumber)
- Parameters:
columnNumber - the columnNumber to set
compareTo
public int compareTo(java.lang.Object arg0)
- Specified by:
compareTo in interface java.lang.Comparable
compare
public static final int compare(int left,
int right)