|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.xml.location.FileLocation
public class FileLocation
A simple FileLocation class used for finer grained detail of exceptions.
| Constructor Summary | |
|---|---|
FileLocation()
Creates a new FileLocation |
|
FileLocation(int line,
int column)
Creates a new FileLocation. |
|
FileLocation(String filename)
Creates a new FileLocation |
|
FileLocation(String filename,
int line,
int column)
Creates a new FileLocation. |
|
| Method Summary | |
|---|---|
int |
getColumnNumber()
Returns the column number for this FileLocation. |
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(String filename)
Sets the name of the file to which this FileLocation refers. |
void |
setLineNumber(int line)
Sets the line number for this FileLocation. |
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 |
|---|
public FileLocation()
public FileLocation(String filename)
filename - the name of the file
public FileLocation(int line,
int column)
line - the line numbercolumn - the column number within the specified line
public FileLocation(String filename,
int line,
int column)
filename - the name of the fileline - the line numbercolumn - the column number within the specified line| Method Detail |
|---|
public int getColumnNumber()
public String getFilename()
public int getLineNumber()
public void setColumnNumber(int column)
column - the column number for this FileLocationpublic void setFilename(String filename)
filename - the name of the file to which this FileLocation referspublic void setLineNumber(int line)
line - the line number for this FileLocationpublic String toString()
toString in interface LocationtoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||