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.ResponseType;
22 import org.opensaml.xacml.ctx.ResultType;
23 import org.opensaml.xml.XMLObject;
24 import org.opensaml.xml.io.AbstractXMLObjectUnmarshaller;
25 import org.opensaml.xml.io.UnmarshallingException;
26 import org.w3c.dom.Attr;
27
28
29 public class ResponseTypeUnmarshaller extends AbstractXMLObjectUnmarshaller {
30
31
32 public ResponseTypeUnmarshaller() {
33 super();
34 }
35
36
37
38
39
40
41
42
43
44 protected ResponseTypeUnmarshaller(String targetNamespaceURI, String targetLocalName) {
45 super(targetNamespaceURI, targetLocalName);
46 }
47
48
49 protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
50 throws UnmarshallingException {
51 ResponseType response = (ResponseType) parentSAMLObject;
52 if (childSAMLObject instanceof ResultType) {
53 response.setResult((ResultType) childSAMLObject);
54 }
55 }
56
57
58 protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
59 }
60
61
62 protected void processElementContent(XMLObject xmlObject, String elementContent) {
63 }
64 }