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 java.util.ArrayList;
20 import java.util.Collections;
21 import java.util.List;
22
23 import org.opensaml.common.impl.AbstractSAMLObject;
24 import org.opensaml.saml1.core.Subject;
25 import org.opensaml.saml1.core.SubjectQuery;
26 import org.opensaml.xml.XMLObject;
27
28
29
30
31 public abstract class SubjectQueryImpl extends AbstractSAMLObject implements SubjectQuery {
32
33
34 private Subject subject;
35
36
37
38
39
40
41
42
43 protected SubjectQueryImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
44 super(namespaceURI, elementLocalName, namespacePrefix);
45 }
46
47
48 public Subject getSubject() {
49 return subject;
50 }
51
52
53 public void setSubject(Subject subject) {
54 this.subject = prepareForAssignment(this.subject, subject);
55 }
56
57
58 public List<XMLObject> getOrderedChildren() {
59 if (subject == null) {
60 return null;
61 }
62
63 List<XMLObject> children = new ArrayList<XMLObject>();
64 children.add(subject);
65 return Collections.unmodifiableList(children);
66 }
67 }