KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jicengine > element > Location


1 package org.jicengine.element;
2
3 /**
4  *
5  *
6  * <p>
7  * Copyright (C) 2004 Timo Laitinen
8  * </p>
9  * @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 JavaDoc 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 JavaDoc document, int depth)
25     {
26         this.lineNumber = lineNumber;
27         this.document = document;
28         this.depth = depth;
29     }
30
31     public int getDepth()
32     {
33         return this.depth;
34     }
35     public String JavaDoc toString()
36     {
37         return "line " + this.lineNumber + " in " + this.document;
38     }
39
40 }
41
Popular Tags