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.DecisionType;
22 import org.opensaml.xacml.ctx.DecisionType.DECISION;
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 DecisionTypeUnmarshaller extends AbstractXMLObjectUnmarshaller {
30
31
32 public DecisionTypeUnmarshaller() {
33 super();
34 }
35
36
37
38
39
40
41
42
43
44 protected DecisionTypeUnmarshaller(String targetNamespaceURI, String targetLocalName) {
45 super(targetNamespaceURI, targetLocalName);
46 }
47
48
49 protected void processElementContent(XMLObject samlObject, String elementContent) {
50 DecisionType decision = (DecisionType) samlObject;
51 decision.setDecision(DECISION.valueOf(elementContent));
52 }
53
54
55 protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
56 }
57
58
59 protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException {
60
61 }
62
63 }