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.ActionType;
22 import org.opensaml.xacml.ctx.AttributeType;
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 ActionTypeUnmarshaller extends AbstractXMLObjectUnmarshaller {
30
31
32 public ActionTypeUnmarshaller() {
33 super();
34 }
35
36
37
38
39
40
41
42
43
44 ActionTypeUnmarshaller(String targetNamespaceURI, String targetLocalName) {
45 super(targetNamespaceURI, targetLocalName);
46 }
47
48
49 protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException {
50 ActionType action = (ActionType) parentObject;
51
52 if (childObject instanceof AttributeType) {
53 action.getAttributes().add((AttributeType) childObject);
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 }