org.exolab.castor.xml.location
public class FileLocation extends java.lang.Object implements Location, java.io.Serializable
Constructor and Description |
---|
FileLocation()
Creates a new FileLocation
|
FileLocation(int line,
int column)
Creates a new FileLocation.
|
FileLocation(java.lang.String filename)
Creates a new FileLocation
|
FileLocation(java.lang.String filename,
int line,
int column)
Creates a new FileLocation.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber()
Returns the column number for this FileLocation.
|
java.lang.String |
getFilename()
Returns the name of the file to which this FileLocation refers.
|
int |
getLineNumber()
Returns the line number for this FileLocation.
|
void |
setColumnNumber(int column)
Sets the column number for this FileLocation.
|
void |
setFilename(java.lang.String filename)
Sets the name of the file to which this FileLocation refers.
|
void |
setLineNumber(int line)
Sets the line number for this FileLocation.
|
java.lang.String |
toString()
Returns the String representation of this FileLocation.
|
public FileLocation()
public FileLocation(java.lang.String filename)
filename
- the name of the filepublic FileLocation(int line, int column)
line
- the line numbercolumn
- the column number within the specified linepublic FileLocation(java.lang.String filename, int line, int column)
filename
- the name of the fileline
- the line numbercolumn
- the column number within the specified linepublic int getColumnNumber()
public java.lang.String getFilename()
public int getLineNumber()
public void setColumnNumber(int column)
column
- the column number for this FileLocationpublic void setFilename(java.lang.String filename)
filename
- the name of the file to which this FileLocation referspublic void setLineNumber(int line)
line
- the line number for this FileLocationIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com