org.exolab.castor.xml

Class FileLocation

public class FileLocation extends Object implements Location, Serializable

A simple FileLocation class used for finer grained detail of exceptions

Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:09 $

Author: Keith Visco

Constructor Summary
FileLocation()
Creates a new FileLocation
FileLocation(String filename)
Creates a new FileLocation
FileLocation(int line, int column)
Creates a new FileLocation
FileLocation(String filename, int line, int column)
Creates a new FileLocation
Method Summary
intgetColumnNumber()
Returns the column number for this Location
StringgetFilename()
Returns the name of the file to which this FileLocation refers
intgetLineNumber()
Returns the line number for this location
voidsetColumnNumber(int column)
Sets the column number for this Location
voidsetFilename(String filename)
Sets the name of the file to which this FileLocation refers
voidsetLineNumber(int line)
Sets the line number for this Location
StringtoString()
Returns the String representation of this Location

Constructor Detail

FileLocation

public FileLocation()
Creates a new FileLocation

FileLocation

public FileLocation(String filename)
Creates a new FileLocation

Parameters: filename the name of the file

FileLocation

public FileLocation(int line, int column)
Creates a new FileLocation

Parameters: line the line number column the column number within the specified line

FileLocation

public FileLocation(String filename, int line, int column)
Creates a new FileLocation

Parameters: filename the name of the file line the line number column the column number within the specified line

Method Detail

getColumnNumber

public int getColumnNumber()
Returns the column number for this Location

Returns: the column number for this Location

getFilename

public String getFilename()
Returns the name of the file to which this FileLocation refers

Returns: the name of the file to which this FileLocation refers

getLineNumber

public int getLineNumber()
Returns the line number for this location

Returns: the line number for the FileLocation

setColumnNumber

public void setColumnNumber(int column)
Sets the column number for this Location

Parameters: column the column number for this Location

setFilename

public void setFilename(String filename)
Sets the name of the file to which this FileLocation refers

Parameters: filename the name of the file to which this FileLocation refers

setLineNumber

public void setLineNumber(int line)
Sets the line number for this Location

Parameters: line the line number for this Location

toString

public String toString()
Returns the String representation of this Location

Returns: the String representation of this Location

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com