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