01: /*
02: * Copyright (C) The DNA Group. All rights reserved.
03: *
04: * This software is published under the terms of the DNA
05: * Software License version 1.1, a copy of which has been included
06: * with this distribution in the LICENSE.txt file.
07: */
08: package org.codehaus.dna.impl;
09:
10: import org.xml.sax.Locator;
11:
12: class MockLocator implements Locator {
13: private final String _systemId;
14: private int _lineNumber = -1;
15: private int _columnNumber = -1;
16:
17: public MockLocator(final String systemId) {
18: _systemId = systemId;
19: }
20:
21: public String getPublicId() {
22: return null;
23: }
24:
25: public String getSystemId() {
26: return _systemId;
27: }
28:
29: public int getLineNumber() {
30: return _lineNumber;
31: }
32:
33: public void setLineNumber(int lineNumber) {
34: _lineNumber = lineNumber;
35: }
36:
37: public int getColumnNumber() {
38: return _columnNumber;
39: }
40:
41: public void setColumnNumber(int columnNumber) {
42: _columnNumber = columnNumber;
43: }
44: }
|