1 /* 2 * Copyright (C) The JContainer Group. All rights reserved. 3 * 4 * This software is published under the terms of the JContainer 5 * Software License version 1.1, a copy of which has been included 6 * with this distribution in the LICENSE.txt file. 7 */ 8 package org.jcontainer.dna.impl; 9 10 import org.xml.sax.Locator; 11 12 class MockLocator 13 implements Locator 14 { 15 private final String _systemId; 16 private int _lineNumber = -1; 17 private int _columnNumber = -1; 18 19 public MockLocator( final String systemId ) 20 { 21 _systemId = systemId; 22 } 23 24 public String getPublicId() 25 { 26 return null; 27 } 28 29 public String getSystemId() 30 { 31 return _systemId; 32 } 33 34 public int getLineNumber() 35 { 36 return _lineNumber; 37 } 38 39 public void setLineNumber( int lineNumber ) 40 { 41 _lineNumber = lineNumber; 42 } 43 44 public int getColumnNumber() 45 { 46 return _columnNumber; 47 } 48 49 public void setColumnNumber( int columnNumber ) 50 { 51 _columnNumber = columnNumber; 52 } 53 }

This page was automatically generated by Maven