Package org.apache.commons.jelly
Interface LocationAware
- All Known Implementing Classes:
BreakException
,JellyException
,JellyTagException
,MissingAttributeException
public interface LocationAware
LocationAware
represents a Tag or Exception which is location aware.
That is to say it is capable of recording where in a Jelly script a tag or exception
is used which can aid debugging and tracing.
- Version:
- $Revision: 155420 $
- Author:
- James Strachan
-
Method Summary
Modifier and TypeMethodDescriptionint
int
void
setColumnNumber
(int columnNumber) Sets the column number of the tagvoid
setElementName
(String elementName) Sets the element name which caused the problemvoid
setFileName
(String fileName) Sets the Jelly file which caused the problemvoid
setLineNumber
(int lineNumber) Sets the line number of the tag
-
Method Details
-
getLineNumber
int getLineNumber()- Returns:
- the line number of the tag
-
setLineNumber
void setLineNumber(int lineNumber) Sets the line number of the tag -
getColumnNumber
int getColumnNumber()- Returns:
- the column number of the tag
-
setColumnNumber
void setColumnNumber(int columnNumber) Sets the column number of the tag -
getFileName
String getFileName()- Returns:
- the Jelly file which caused the problem
-
setFileName
Sets the Jelly file which caused the problem -
getElementName
String getElementName()- Returns:
- the element name which caused the problem
-
setElementName
Sets the element name which caused the problem
-