Package com.helger.commons.location
Interface ILocation
-
- All Known Implementing Classes:
SimpleLocation
@MustImplementEqualsAndHashcode public interface ILocation
Interface indication the position of something within a single resource- Author:
- Philip Helger
-
-
Field Summary
Fields Modifier and Type Field Description static intILLEGAL_NUMBERConstant for an illegal row or column number
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetAsString()intgetColumnNumber()intgetLineNumber()StringgetResourceID()default booleanhasColumnNumber()default booleanhasLineNumber()default booleanhasResourceID()default booleanisAnyInformationPresent()Simple method to check if resource ID, line number, column number or field name is present.
-
-
-
Field Detail
-
ILLEGAL_NUMBER
static final int ILLEGAL_NUMBER
Constant for an illegal row or column number- See Also:
- Constant Field Values
-
-
Method Detail
-
getResourceID
@Nullable String getResourceID()
- Returns:
- The ID of the resource where the error occurred. May be
null.
-
hasResourceID
default boolean hasResourceID()
-
getLineNumber
int getLineNumber()
- Returns:
- The 1-based line number
ILLEGAL_NUMBERif no line number is present.
-
hasLineNumber
default boolean hasLineNumber()
-
getColumnNumber
int getColumnNumber()
- Returns:
- The 1-based column number
ILLEGAL_NUMBERif no column number is present.
-
hasColumnNumber
default boolean hasColumnNumber()
-
isAnyInformationPresent
default boolean isAnyInformationPresent()
Simple method to check if resource ID, line number, column number or field name is present.- Returns:
trueif at least one field is set,falseotherwise.
-
-