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