*/
public abstract class EncryptedTypeMarshaller extends AbstractXMLEncryptionMarshaller {
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
EncryptedType et = (EncryptedType) xmlObject;
if (et.getID() != null) {
domElement.setAttributeNS(null, EncryptedType.ID_ATTRIB_NAME, et.getID());
domElement.setIdAttributeNS(null, EncryptedType.ID_ATTRIB_NAME, true);
}
if (et.getType() != null) {
domElement.setAttributeNS(null, EncryptedType.TYPE_ATTRIB_NAME, et.getType());
}
if (et.getMimeType() != null) {
domElement.setAttributeNS(null, EncryptedType.MIMETYPE_ATTRIB_NAME, et.getMimeType());
}
if (et.getEncoding() != null) {
domElement.setAttributeNS(null, EncryptedType.ENCODING_ATTRIB_NAME, et.getEncoding());
}
}