COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification

org.eclipse.cosmos.rm.validation.internal.artifacts
Class ElementLocation

java.lang.Object
  extended by 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)
           
 
Method Summary
static int compare(int left, int right)
           
 int compareTo(java.lang.Object arg0)
           
 int getColumnNumber()
           
 java.lang.String getFilePath()
           
 int getLineNumber()
           
 void setColumnNumber(int columnNumber)
           
 void setFilePath(java.lang.String filePath)
           
 void setLineNumber(int lineNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementLocation

public ElementLocation(java.lang.String filePath,
                       int lineNumber)

ElementLocation

public ElementLocation(java.lang.String filePath,
                       int lineNumber,
                       int columnNumber)
Method Detail

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)

COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification