super(targetNamespaceURI, targetLocalName);
}
/** {@inheritDoc} */
public void marshallAttributes(XMLObject samlElement, Element domElement) {
Endpoint endpoint = (Endpoint) samlElement;
if (endpoint.getBinding() != null) {
domElement.setAttributeNS(null, Endpoint.BINDING_ATTRIB_NAME, endpoint.getBinding().toString());
}
if (endpoint.getLocation() != null) {
domElement.setAttributeNS(null, Endpoint.LOCATION_ATTRIB_NAME, endpoint.getLocation().toString());
}
if (endpoint.getResponseLocation() != null) {
domElement.setAttributeNS(null, Endpoint.RESPONSE_LOCATION_ATTRIB_NAME, endpoint.getResponseLocation()
.toString());
}
Attr attribute;
for(Entry<QName, String> entry: endpoint.getUnknownAttributes().entrySet()){
attribute = XMLHelper.constructAttribute(domElement.getOwnerDocument(), entry.getKey());
attribute.setValue(entry.getValue());
domElement.setAttributeNodeNS(attribute);
if (Configuration.isIDAttribute(entry.getKey())
|| endpoint.getUnknownAttributes().isIDAttribute(entry.getKey())) {
attribute.getOwnerElement().setIdAttributeNode(attribute, true);
}
}
}