1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.springframework.ws.soap.saaj;
18
19 import javax.xml.soap.DetailEntry;
20 import javax.xml.soap.SOAPException;
21 import javax.xml.transform.Result;
22
23 import org.springframework.ws.soap.SoapFaultDetailElement;
24
25
26
27
28
29
30
31
32 class SaajSoapFaultDetailElement extends SaajSoapElement<DetailEntry> implements SoapFaultDetailElement {
33
34 SaajSoapFaultDetailElement(DetailEntry entry) {
35 super(entry);
36 }
37
38 public Result getResult() {
39 return getImplementation().getResult(getSaajDetailEntry());
40 }
41
42 public void addText(String text) {
43 try {
44 getImplementation().addTextNode(getSaajDetailEntry(), text);
45 }
46 catch (SOAPException ex) {
47 throw new SaajSoapFaultException(ex);
48 }
49 }
50
51 protected DetailEntry getSaajDetailEntry() {
52 return (DetailEntry) getSaajElement();
53 }
54
55 }