1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.saml2.common.impl;
18
19 import org.opensaml.common.impl.AbstractSAMLObjectUnmarshaller;
20 import org.opensaml.saml2.common.Extensions;
21 import org.opensaml.xml.XMLObject;
22 import org.opensaml.xml.io.AbstractXMLObjectUnmarshaller;
23 import org.opensaml.xml.io.UnmarshallingException;
24 import org.slf4j.Logger;
25 import org.slf4j.LoggerFactory;
26 import org.w3c.dom.Attr;
27
28 public class ExtensionsUnmarshaller extends AbstractXMLObjectUnmarshaller {
29
30
31 private final Logger log = LoggerFactory.getLogger(AbstractSAMLObjectUnmarshaller.class);
32
33
34 public ExtensionsUnmarshaller() {
35 super();
36 }
37
38
39
40
41 protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
42 throws UnmarshallingException {
43 Extensions extensions = (Extensions) parentXMLObject;
44
45 extensions.getUnknownXMLObjects().add(childXMLObject);
46 }
47
48
49
50
51 protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
52 log.debug("Ignorning unknown attribute {}", attribute.getLocalName());
53 }
54
55
56
57
58 protected void processElementContent(XMLObject xmlObject, String elementContent) {
59 log.debug("Ignoring element content {}", elementContent);
60 }
61 }