org.exolab.castor.xml
Class FileLocation
java.lang.Objectorg.exolab.castor.xml.FileLocation
- Location, java.io.Serializable
public class FileLocation
extends java.lang.Object
implements Location, java.io.Serializable
A simple FileLocation class used for finer grained detail of
exceptions
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:09 $
int | getColumnNumber()- Returns the column number for this Location
|
String | getFilename()- Returns the name of the file to which this FileLocation refers
|
int | getLineNumber()- Returns the line number for this location
|
void | setColumnNumber(int column)- Sets the column number for this Location
|
void | setFilename(String filename)- Sets the name of the file to which this FileLocation refers
|
void | setLineNumber(int line)- Sets the line number for this Location
|
String | toString()- Returns the String representation of this Location
|
FileLocation
public FileLocation()
Creates a new FileLocation
FileLocation
public FileLocation(String filename)
Creates a new FileLocation
filename - the name of the file
FileLocation
public FileLocation(String filename,
int line,
int column) Creates a new FileLocation
filename - the name of the fileline - the line numbercolumn - the column number within the specified line
FileLocation
public FileLocation(int line,
int column) Creates a new FileLocation
line - the line numbercolumn - the column number within the specified line
getColumnNumber
public int getColumnNumber()
Returns the column number for this Location
- the column number for this Location
getFilename
public String getFilename()
Returns the name of the file to which this FileLocation refers
- the name of the file to which this FileLocation refers
getLineNumber
public int getLineNumber()
Returns the line number for this location
- the line number for the FileLocation
setColumnNumber
public void setColumnNumber(int column)
Sets the column number for this Location
column - the column number for this Location
setFilename
public void setFilename(String filename)
Sets the name of the file to which this FileLocation refers
filename - the name of the file to which this FileLocation
refers
setLineNumber
public void setLineNumber(int line)
Sets the line number for this Location
line - the line number for this Location
toString
public String toString()
Returns the String representation of this Location
- toString in interface Location
- the String representation of this Location
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com