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 java.util.Collections;
24 import java.util.List;
25
26 import javax.xml.namespace.QName;
27
28 import org.opensaml.common.impl.AbstractSAMLObject;
29 import org.opensaml.saml2.core.AuthnContextDecl;
30 import org.opensaml.xml.XMLObject;
31 import org.opensaml.xml.util.AttributeMap;
32 import org.opensaml.xml.util.IndexedXMLObjectChildrenList;
33
34
35
36
37 public class AuthnContextDeclImpl extends AbstractSAMLObject implements AuthnContextDecl {
38
39
40 private IndexedXMLObjectChildrenList<XMLObject> unknownXMLObjects;
41
42
43 private AttributeMap unknownAttributes;
44
45
46 private String textContent;
47
48
49
50
51
52
53
54
55 protected AuthnContextDeclImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
56 super(namespaceURI, elementLocalName, namespacePrefix);
57
58 unknownXMLObjects = new IndexedXMLObjectChildrenList<XMLObject>(this);
59 unknownAttributes = new AttributeMap(this);
60 }
61
62
63 public String getTextContent() {
64 return textContent;
65 }
66
67
68 public void setTextContent(String newContent) {
69 textContent = prepareForAssignment(textContent, newContent);
70 }
71
72
73 public List<XMLObject> getUnknownXMLObjects() {
74 return unknownXMLObjects;
75 }
76
77
78 public List<XMLObject> getUnknownXMLObjects(QName typeOrName) {
79 return (List<XMLObject>) unknownXMLObjects.subList(typeOrName);
80 }
81
82
83 public List<XMLObject> getOrderedChildren() {
84 return Collections.unmodifiableList(unknownXMLObjects);
85 }
86
87
88 public AttributeMap getUnknownAttributes() {
89 return unknownAttributes;
90 }
91 }