super();
}
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlElement, Element domElement) throws MarshallingException {
ObligationType obligation = (ObligationType) samlElement;
if (!DatatypeHelper.isEmpty(obligation.getObligationId())) {
domElement.setAttributeNS(null, ObligationType.OBLIGATION_ID_ATTRIB_NAME, obligation.getObligationId());
}
if (obligation.getFulfillOn() != null) {
if (obligation.getFulfillOn().equals(EffectType.Deny)) {
domElement.setAttributeNS(null, ObligationType.FULFILL_ON_ATTRIB_NAME, EffectType.Deny.toString());
} else {
domElement.setAttributeNS(null, ObligationType.FULFILL_ON_ATTRIB_NAME, EffectType.Permit.toString());
}
}