DOMErrorImpl.java
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* Decompiled with CFR 0_118.
*/
package com.day.jcr.vault.util.xml.xerces.dom;
import com.day.jcr.vault.util.xml.xerces.dom.DOMLocatorImpl;
import com.day.jcr.vault.util.xml.xerces.xni.parser.XMLParseException;
import org.w3c.dom.DOMError;
import org.w3c.dom.DOMLocator;
public class DOMErrorImpl
implements DOMError {
public short fSeverity = 1;
public String fMessage = null;
public DOMLocatorImpl fLocator = new DOMLocatorImpl();
public Exception fException = null;
public String fType;
public Object fRelatedData;
public DOMErrorImpl() {
}
public DOMErrorImpl(short severity, XMLParseException exception) {
this.fSeverity = severity;
this.fException = exception;
this.fLocator = this.createDOMLocator(exception);
}
public short getSeverity() {
return this.fSeverity;
}
public String getMessage() {
return this.fMessage;
}
public DOMLocator getLocation() {
return this.fLocator;
}
private DOMLocatorImpl createDOMLocator(XMLParseException exception) {
return new DOMLocatorImpl(exception.getLineNumber(), exception.getColumnNumber(), exception.getExpandedSystemId());
}
public Object getRelatedException() {
return this.fException;
}
public void reset() {
this.fSeverity = 1;
this.fException = null;
}
public String getType() {
return this.fType;
}
public Object getRelatedData() {
return this.fRelatedData;
}
}