01: package org.kohsuke.rngom.ast.util;
02:
03: import org.kohsuke.rngom.ast.om.Location;
04: import org.xml.sax.Locator;
05:
06: /**
07: * {@link Locator} implementation with {@link Location} marker.
08: */
09: public class LocatorImpl implements Locator, Location {
10: private final String systemId;
11: private final int lineNumber;
12: private final int columnNumber;
13:
14: public LocatorImpl(String systemId, int lineNumber, int columnNumber) {
15: this .systemId = systemId;
16: this .lineNumber = lineNumber;
17: this .columnNumber = columnNumber;
18: }
19:
20: public String getPublicId() {
21: return null;
22: }
23:
24: public String getSystemId() {
25: return systemId;
26: }
27:
28: public int getLineNumber() {
29: return lineNumber;
30: }
31:
32: public int getColumnNumber() {
33: return columnNumber;
34: }
35: }
|