Package com.helger.commons.location
Class SimpleLocation
java.lang.Object
com.helger.commons.location.SimpleLocation
- All Implemented Interfaces:
ILocation
Default implementation of the
ILocation interface. The implementation
is immutable.- Author:
- Philip Helger
-
Field Summary
FieldsFields inherited from interface com.helger.commons.location.ILocation
ILLEGAL_NUMBER -
Constructor Summary
ConstructorsConstructorDescriptionSimpleLocation(String sResourceID) SimpleLocation(String sResourceID, int nLineNumber, int nColumnNumber) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleLocationstatic SimpleLocationcreate(SourceLocator aLocator) static SimpleLocationstatic SimpleLocationcreate(SAXParseException aLocator) booleanintintinthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.location.ILocation
getAsString, hasColumnNumber, hasLineNumber, hasResourceID, isAnyInformationPresent
-
Field Details
-
NO_LOCATION
A constant representing no location
-
-
Constructor Details
-
SimpleLocation
-
SimpleLocation
-
-
Method Details
-
getResourceID
- Specified by:
getResourceIDin interfaceILocation- Returns:
- The ID of the resource where the error occurred. May be
null.
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumberin interfaceILocation- Returns:
- The 1-based line number
ILocation.ILLEGAL_NUMBERif no line number is present.
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumberin interfaceILocation- Returns:
- The 1-based column number
ILocation.ILLEGAL_NUMBERif no column number is present.
-
equals
-
hashCode
public int hashCode() -
toString
-
create
-
create
-
create
-
create
-