1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.commons.jelly;
18
19 /***
20 * <p><code>LocationAware</code> represents a Tag or Exception which is location aware.
21 * That is to say it is capable of recording where in a Jelly script a tag or exception
22 * is used which can aid debugging and tracing.</p>
23 *
24 * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
25 * @version $Revision: 155420 $
26 */
27
28 public interface LocationAware {
29
30 /***
31 * @return the line number of the tag
32 */
33 int getLineNumber();
34
35 /***
36 * Sets the line number of the tag
37 */
38 void setLineNumber(int lineNumber);
39
40 /***
41 * @return the column number of the tag
42 */
43 int getColumnNumber();
44
45 /***
46 * Sets the column number of the tag
47 */
48 void setColumnNumber(int columnNumber);
49
50 /***
51 * @return the Jelly file which caused the problem
52 */
53 String getFileName();
54
55 /***
56 * Sets the Jelly file which caused the problem
57 */
58 void setFileName(String fileName);
59
60 /***
61 * @return the element name which caused the problem
62 */
63 String getElementName();
64
65 /***
66 * Sets the element name which caused the problem
67 */
68 void setElementName(String elementName);
69 }