1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.ws.wsaddressing.impl;
18
19 import java.util.ArrayList;
20 import java.util.Collections;
21 import java.util.List;
22
23 import org.opensaml.ws.wsaddressing.Action;
24 import org.opensaml.ws.wsaddressing.ProblemAction;
25 import org.opensaml.ws.wsaddressing.SoapAction;
26 import org.opensaml.xml.XMLObject;
27 import org.opensaml.xml.util.AttributeMap;
28
29
30
31
32 public class ProblemActionImpl extends AbstractWSAddressingObject implements ProblemAction {
33
34
35 private Action action;
36
37
38 private SoapAction soapAction;
39
40
41 private AttributeMap unknownAttributes;
42
43
44
45
46
47
48
49
50 public ProblemActionImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
51 super(namespaceURI, elementLocalName, namespacePrefix);
52 unknownAttributes = new AttributeMap(this);
53 }
54
55
56 public Action getAction() {
57 return action;
58 }
59
60
61 public SoapAction getSoapAction() {
62 return soapAction;
63 }
64
65
66 public void setAction(Action newAction) {
67 action = prepareForAssignment(action, newAction);
68 }
69
70
71 public void setSoapAction(SoapAction newSoapAction) {
72 soapAction = prepareForAssignment(soapAction, newSoapAction);
73 }
74
75
76 public AttributeMap getUnknownAttributes() {
77 return unknownAttributes;
78 }
79
80
81 public List<XMLObject> getOrderedChildren() {
82 ArrayList<XMLObject> children = new ArrayList<XMLObject>();
83 if (action != null) {
84 children.add(action);
85 }
86 if (soapAction != null) {
87 children.add(soapAction);
88 }
89
90 return Collections.unmodifiableList(children);
91 }
92
93 }