01: package org.jicengine.element;
02:
03: /**
04: *
05: *
06: * <p>
07: * Copyright (C) 2004 Timo Laitinen
08: * </p>
09: * @author Timo Laitinen
10: * @created 2004-09-20
11: * @since JICE-0.10
12: *
13: */
14:
15: public class Location {
16:
17: int lineNumber;
18: String document;
19: int depth;
20:
21: /**
22: * @param depth the depth of the element in the element-tree.
23: */
24: public Location(int lineNumber, String document, int depth) {
25: this .lineNumber = lineNumber;
26: this .document = document;
27: this .depth = depth;
28: }
29:
30: public int getDepth() {
31: return this .depth;
32: }
33:
34: public String toString() {
35: return "line " + this .lineNumber + " in " + this.document;
36: }
37:
38: }
|