*/
public class DelegateMarshaller extends AbstractSAMLObjectMarshaller {
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
Delegate delegate = (Delegate) xmlObject;
if (delegate.getDelegationInstant() != null) {
String delInstant = Configuration.getSAMLDateFormatter().print(delegate.getDelegationInstant());
domElement.setAttributeNS(null, Delegate.DELEGATION_INSTANT_ATTRIB_NAME, delInstant);
}
if (!DatatypeHelper.isEmpty(delegate.getConfirmationMethod())) {
domElement.setAttributeNS(null, Delegate.CONFIRMATION_METHOD_ATTRIB_NAME, delegate.getConfirmationMethod());
}
super.marshallAttributes(xmlObject, domElement);
}