1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.opensaml.xacml.policy.impl;
20
21 import org.opensaml.xacml.policy.ObligationType;
22 import org.opensaml.xacml.policy.ObligationsType;
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 ObligationsTypeUnmarshaller extends AbstractXMLObjectUnmarshaller {
30
31
32 public ObligationsTypeUnmarshaller() {
33 super();
34 }
35
36
37 protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
38
39 }
40
41
42 protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException {
43
44 ObligationsType obligations = (ObligationsType) parentObject;
45
46 if (childObject instanceof ObligationType) {
47 obligations.getObligations().add((ObligationType) childObject);
48 }
49 }
50
51
52 protected void processElementContent(XMLObject xmlObject, String elementContent) {
53
54 }
55 }