1 6 package org.xml.sax.helpers; 7 8 import org.xml.sax.Locator ; 9 10 11 52 public class LocatorImpl implements Locator 53 { 54 55 56 62 public LocatorImpl () 63 { 64 } 65 66 67 77 public LocatorImpl (Locator locator) 78 { 79 setPublicId(locator.getPublicId()); 80 setSystemId(locator.getSystemId()); 81 setLineNumber(locator.getLineNumber()); 82 setColumnNumber(locator.getColumnNumber()); 83 } 84 85 86 87 91 92 100 public String getPublicId () 101 { 102 return publicId; 103 } 104 105 106 114 public String getSystemId () 115 { 116 return systemId; 117 } 118 119 120 127 public int getLineNumber () 128 { 129 return lineNumber; 130 } 131 132 133 140 public int getColumnNumber () 141 { 142 return columnNumber; 143 } 144 145 146 147 151 152 159 public void setPublicId (String publicId) 160 { 161 this.publicId = publicId; 162 } 163 164 165 172 public void setSystemId (String systemId) 173 { 174 this.systemId = systemId; 175 } 176 177 178 184 public void setLineNumber (int lineNumber) 185 { 186 this.lineNumber = lineNumber; 187 } 188 189 190 196 public void setColumnNumber (int columnNumber) 197 { 198 this.columnNumber = columnNumber; 199 } 200 201 202 203 207 private String publicId; 208 private String systemId; 209 private int lineNumber; 210 private int columnNumber; 211 212 } 213 214 | Popular Tags |