com.anthonyeden.lib.config
Class Location

java.lang.Object
  extended bycom.anthonyeden.lib.config.Location

public class Location
extends java.lang.Object

This interface provides information about where the configuration object was located in the configuration file.

Since:
2.0
Author:
Anthony Eden

Constructor Summary
Location(java.lang.String sourceId, int lineNumber, int columnNumber)
          Construct a new Location object
 
Method Summary
 int getColumnNumber()
          Get the column number
 int getLineNumber()
          Get the line number
 java.lang.String getSourceId()
          Get the source ID which is used to identify the source of the configuration data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Location

public Location(java.lang.String sourceId,
                int lineNumber,
                int columnNumber)
Construct a new Location object

Parameters:
sourceId - The source ID
lineNumber - The line number
columnNumber - The column number
Method Detail

getSourceId

public java.lang.String getSourceId()
Get the source ID which is used to identify the source of the configuration data. This method should return a file path, URL or some other form of human readable location ID

Returns:
The source ID

getLineNumber

public int getLineNumber()
Get the line number

Returns:
The line number

getColumnNumber

public int getColumnNumber()
Get the column number

Returns:
The column number


Copyright (c) 2000-2003 Anthony Eden. All Rights Reserved.