buildframework/helium/sf/java/antdata/src/com/nokia/helium/ant/data/ElementWithLocation.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 package com.nokia.helium.ant.data; |
|
19 |
|
20 import org.dom4j.QName; |
|
21 import org.dom4j.dom.DOMElement; |
|
22 |
|
23 /** |
|
24 * An Element that additionally stores location information about the element. |
|
25 */ |
|
26 @SuppressWarnings("serial") |
|
27 public class ElementWithLocation extends DOMElement { |
|
28 |
|
29 private int lineNumber; |
|
30 private int columnNumber; |
|
31 |
|
32 public ElementWithLocation(QName qname) { |
|
33 super(qname); |
|
34 } |
|
35 void setLocation(int lineNumber, int columnNumber) { |
|
36 this.lineNumber = lineNumber; |
|
37 this.columnNumber = columnNumber; |
|
38 } |
|
39 |
|
40 int getLineNumber() { |
|
41 return lineNumber; |
|
42 } |
|
43 |
|
44 int getColumnNumber() { |
|
45 return columnNumber; |
|
46 } |
|
47 } |