1 package net.sf.saxon.event; 2 3 10 11 public class LocationCopier extends ProxyReceiver implements LocationProvider { 12 13 public int lineNumber; 14 15 public void setPipelineConfiguration(PipelineConfiguration pipe) { 16 PipelineConfiguration pipe2 = new PipelineConfiguration(pipe); 17 pipe2.setLocationProvider(this); 18 super.setPipelineConfiguration(pipe2); 19 } 20 21 public void setLineNumber(int lineNumber) { 22 this.lineNumber = lineNumber; 23 } 24 25 public int getColumnNumber() { 26 return -1; 27 } 28 29 public int getLineNumber() { 30 return lineNumber; 31 } 32 33 public String getPublicId() { 34 return null; 35 } 36 37 public String getSystemId(int locationId) { 38 return getSystemId(); 39 } 40 41 public int getLineNumber(int locationId) { 42 return getLineNumber(); 43 } 44 } 45 46 | Popular Tags |