org.exolab.castor.xml.location
Class FileLocation

java.lang.Object
  extended by org.exolab.castor.xml.location.FileLocation
All Implemented Interfaces:
java.io.Serializable, Location

public class FileLocation
extends java.lang.Object
implements Location, java.io.Serializable

A simple FileLocation class used for finer grained detail of exceptions.

Version:
$Revision: 6936 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
Author:
Keith Visco
See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileLocation

public FileLocation()
Creates a new FileLocation


FileLocation

public FileLocation(java.lang.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(java.lang.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 FileLocation.

Returns:
the column number for this FileLocation.

getFilename

public java.lang.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 FileLocation.

Returns:
the line number for this FileLocation.

setColumnNumber

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

Parameters:
column - the column number for this FileLocation

setFilename

public void setFilename(java.lang.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 FileLocation.

Parameters:
line - the line number for this FileLocation

toString

public java.lang.String toString()
Returns the String representation of this FileLocation.

Specified by:
toString in interface Location
Overrides:
toString in class java.lang.Object
Returns:
the String representation of this FileLocation.


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