1 57 58 package com.sun.org.apache.xerces.internal.dom; 59 60 import org.w3c.dom.DOMLocator ; 61 import org.w3c.dom.Node ; 62 63 64 72 73 public class DOMLocatorImpl implements DOMLocator { 74 75 79 83 public int fColumnNumber = -1; 84 85 89 public int fLineNumber = -1; 90 91 92 public Node fRelatedNode = null; 93 94 98 public String fUri = null; 99 100 104 public int fByteOffset = -1; 105 106 111 public int fUtf16Offset = -1; 112 113 117 public DOMLocatorImpl(){ 118 } 119 120 public DOMLocatorImpl (int lineNumber, int columnNumber, String uri ){ 121 fLineNumber = lineNumber ; 122 fColumnNumber = columnNumber ; 123 fUri = uri; 124 } 126 public DOMLocatorImpl (int lineNumber, int columnNumber, int byteoffset, Node relatedData, String uri ){ 127 fLineNumber = lineNumber ; 128 fColumnNumber = columnNumber ; 129 fByteOffset = byteoffset ; 130 fRelatedNode = relatedData ; 131 fUri = uri; 132 } 134 public DOMLocatorImpl (int lineNumber, int columnNumber, int byteoffset, Node relatedData, String uri, int utf16Offsert ){ 135 fLineNumber = lineNumber ; 136 fColumnNumber = columnNumber ; 137 fByteOffset = byteoffset ; 138 fRelatedNode = relatedData ; 139 fUri = uri; 140 fUtf16Offset = utf16Offsert; 141 } 143 144 148 public int getLineNumber(){ 149 return fLineNumber; 150 } 151 152 156 public int getColumnNumber(){ 157 return fColumnNumber; 158 } 159 160 161 164 public String getUri(){ 165 return fUri; 166 } 167 168 169 public Node getRelatedNode(){ 170 return fRelatedNode; 171 } 172 173 174 178 public int getByteOffset(){ 179 return fByteOffset; 180 } 181 182 187 public int getUtf16Offset(){ 188 return fUtf16Offset; 189 } 190 191 } | Popular Tags |