Package com.helger.commons.location
Class SimpleLocation
- java.lang.Object
-
- com.helger.commons.location.SimpleLocation
-
-
Field Summary
Fields Modifier and Type Field Description static SimpleLocationNO_LOCATIONA constant representing no location-
Fields inherited from interface com.helger.commons.location.ILocation
ILLEGAL_NUMBER
-
-
Constructor Summary
Constructors Constructor Description SimpleLocation(String sResourceID)SimpleLocation(String sResourceID, int nLineNumber, int nColumnNumber)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimpleLocationcreate(Location aLocator)static SimpleLocationcreate(SourceLocator aLocator)static SimpleLocationcreate(Locator aLocator)static SimpleLocationcreate(SAXParseException aLocator)booleanequals(Object o)intgetColumnNumber()intgetLineNumber()StringgetResourceID()inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.commons.location.ILocation
getAsString, hasColumnNumber, hasLineNumber, hasResourceID, isAnyInformationPresent
-
-
-
-
Field Detail
-
NO_LOCATION
public static final SimpleLocation NO_LOCATION
A constant representing no location
-
-
Method Detail
-
getResourceID
@Nullable public String 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.
-
create
@Nullable public static SimpleLocation create(@Nullable Locator aLocator)
-
create
@Nullable public static SimpleLocation create(@Nullable SourceLocator aLocator)
-
create
@Nullable public static SimpleLocation create(@Nullable SAXParseException aLocator)
-
create
@Nullable public static SimpleLocation create(@Nullable Location aLocator)
-
-