1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.saml1.core.impl;
18
19 import org.opensaml.saml1.core.Attribute;
20 import org.opensaml.saml1.core.AttributeStatement;
21 import org.opensaml.xml.XMLObject;
22 import org.opensaml.xml.io.UnmarshallingException;
23
24
25
26
27 public class AttributeStatementUnmarshaller extends SubjectStatementUnmarshaller {
28
29
30 protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
31 throws UnmarshallingException {
32
33 AttributeStatement attributeStatement = (AttributeStatement) parentSAMLObject;
34
35 if (childSAMLObject instanceof Attribute) {
36 attributeStatement.getAttributes().add((Attribute) childSAMLObject);
37 } else {
38 super.processChildElement(parentSAMLObject, childSAMLObject);
39 }
40 }
41 }