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.metadata.impl;
22
23 import org.opensaml.saml2.metadata.IndexedEndpoint;
24 import org.opensaml.xml.XMLObject;
25 import org.w3c.dom.Element;
26
27
28
29
30 public class IndexedEndpointMarshaller extends EndpointMarshaller {
31
32
33 public void marshallAttributes(XMLObject samlObject, Element domElement) {
34 IndexedEndpoint iEndpoint = (IndexedEndpoint) samlObject;
35
36 if (iEndpoint.getIndex() != null) {
37 domElement.setAttributeNS(null, IndexedEndpoint.INDEX_ATTRIB_NAME, iEndpoint.getIndex().toString());
38 }
39
40 if (iEndpoint.isDefaultXSBoolean() != null) {
41 domElement.setAttributeNS(null, IndexedEndpoint.IS_DEFAULT_ATTRIB_NAME, iEndpoint.isDefaultXSBoolean()
42 .toString());
43 }
44
45 super.marshallAttributes(samlObject, domElement);
46 }
47 }