1 16 19 package com.sun.org.apache.xml.internal.utils; 20 21 22 41 public class SerializableLocatorImpl 42 implements org.xml.sax.Locator , java.io.Serializable 43 44 { 45 55 public SerializableLocatorImpl () 56 { 57 } 58 59 60 70 public SerializableLocatorImpl (org.xml.sax.Locator locator) 71 { 72 setPublicId(locator.getPublicId()); 73 setSystemId(locator.getSystemId()); 74 setLineNumber(locator.getLineNumber()); 75 setColumnNumber(locator.getColumnNumber()); 76 } 77 78 79 83 84 92 public String getPublicId () 93 { 94 return publicId; 95 } 96 97 98 106 public String getSystemId () 107 { 108 return systemId; 109 } 110 111 112 119 public int getLineNumber () 120 { 121 return lineNumber; 122 } 123 124 125 132 public int getColumnNumber () 133 { 134 return columnNumber; 135 } 136 137 138 142 143 150 public void setPublicId (String publicId) 151 { 152 this.publicId = publicId; 153 } 154 155 156 163 public void setSystemId (String systemId) 164 { 165 this.systemId = systemId; 166 } 167 168 169 175 public void setLineNumber (int lineNumber) 176 { 177 this.lineNumber = lineNumber; 178 } 179 180 181 187 public void setColumnNumber (int columnNumber) 188 { 189 this.columnNumber = columnNumber; 190 } 191 192 193 197 201 private String publicId; 202 203 207 private String systemId; 208 209 213 private int lineNumber; 214 215 219 private int columnNumber; 220 221 } 222 223 | Popular Tags |