1 16 17 package org.apache.xerces.dom; 18 19 import org.w3c.dom.DOMLocator ; 20 import org.w3c.dom.Node ; 21 22 23 33 34 public class DOMLocatorImpl implements DOMLocator { 35 36 40 44 public int fColumnNumber = -1; 45 46 50 public int fLineNumber = -1; 51 52 53 public Node fRelatedNode = null; 54 55 59 public String fUri = null; 60 61 65 public int fByteOffset = -1; 66 67 72 public int fUtf16Offset = -1; 73 74 78 public DOMLocatorImpl(){ 79 } 80 81 public DOMLocatorImpl (int lineNumber, int columnNumber, String uri ){ 82 fLineNumber = lineNumber ; 83 fColumnNumber = columnNumber ; 84 fUri = uri; 85 } 87 public DOMLocatorImpl (int lineNumber, int columnNumber, int utf16Offset, String uri ){ 88 fLineNumber = lineNumber ; 89 fColumnNumber = columnNumber ; 90 fUri = uri; 91 fUtf16Offset = utf16Offset; 92 } 94 public DOMLocatorImpl (int lineNumber, int columnNumber, int byteoffset, Node relatedData, String uri ){ 95 fLineNumber = lineNumber ; 96 fColumnNumber = columnNumber ; 97 fByteOffset = byteoffset ; 98 fRelatedNode = relatedData ; 99 fUri = uri; 100 } 102 public DOMLocatorImpl (int lineNumber, int columnNumber, int byteoffset, Node relatedData, String uri, int utf16Offset ){ 103 fLineNumber = lineNumber ; 104 fColumnNumber = columnNumber ; 105 fByteOffset = byteoffset ; 106 fRelatedNode = relatedData ; 107 fUri = uri; 108 fUtf16Offset = utf16Offset; 109 } 111 112 116 public int getLineNumber(){ 117 return fLineNumber; 118 } 119 120 124 public int getColumnNumber(){ 125 return fColumnNumber; 126 } 127 128 129 132 public String getUri(){ 133 return fUri; 134 } 135 136 137 public Node getRelatedNode(){ 138 return fRelatedNode; 139 } 140 141 142 146 public int getByteOffset(){ 147 return fByteOffset; 148 } 149 150 155 public int getUtf16Offset(){ 156 return fUtf16Offset; 157 } 158 159 } | Popular Tags |