Package org.apache.camel
Interface LineNumberAware
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getLineNumber()
The line number of this entity.String
getLocation()
The location of the entity.void
setLineNumber(int lineNumber)
Sets the line number of this entity.void
setLocation(String location)
Sets the location of the entity (such as classname, XML file name, etc.)static <T> T
trySetLineNumberAware(T object, LineNumberAware source)
Set theLineNumberAware
if the object is an instance ofLineNumberAware
.
-
-
-
Method Detail
-
getLineNumber
int getLineNumber()
The line number of this entity.- Returns:
- -1 if line number is not possible to know
-
setLineNumber
void setLineNumber(int lineNumber)
Sets the line number of this entity. parsing the source file and provide the line number representing this node.- Parameters:
lineNumber
- the line number
-
getLocation
String getLocation()
The location of the entity.
-
setLocation
void setLocation(String location)
Sets the location of the entity (such as classname, XML file name, etc.)
-
trySetLineNumberAware
static <T> T trySetLineNumberAware(T object, LineNumberAware source)
Set theLineNumberAware
if the object is an instance ofLineNumberAware
.
-
-