1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.opensaml.xacml.ctx.impl;
20
21 import org.opensaml.xacml.ctx.StatusCodeType;
22 import org.opensaml.xacml.ctx.StatusDetailType;
23 import org.opensaml.xacml.ctx.StatusMessageType;
24 import org.opensaml.xacml.ctx.StatusType;
25 import org.opensaml.xml.XMLObject;
26 import org.opensaml.xml.io.AbstractXMLObjectUnmarshaller;
27 import org.opensaml.xml.io.UnmarshallingException;
28 import org.opensaml.xml.schema.XSString;
29 import org.w3c.dom.Attr;
30
31
32 public class StatusTypeUnmarshaller extends AbstractXMLObjectUnmarshaller {
33
34
35 public StatusTypeUnmarshaller() {
36 super();
37 }
38
39
40
41
42
43
44
45
46
47 protected StatusTypeUnmarshaller(String targetNamespaceURI, String targetLocalName) {
48 super(targetNamespaceURI, targetLocalName);
49 }
50
51
52 protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException {
53 StatusType status = (StatusType) parentObject;
54
55 if (childObject instanceof StatusCodeType) {
56 status.setStatusCode((StatusCodeType) childObject);
57 }
58 if (childObject instanceof XSString) {
59 status.setStatusMessage((StatusMessageType) childObject);
60 }
61 if (childObject instanceof StatusDetailType) {
62 status.setStatusDetail((StatusDetailType) childObject);
63 }
64 }
65
66
67 protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
68 }
69
70
71 protected void processElementContent(XMLObject xmlObject, String elementContent) {
72 }
73 }