- setId(src.getId());
- setType(src.getType());
- setMimeType(src.getMimeType());
- setEncoding(src.getEncoding());
- if (src.getEncryptionMethod())
- setEncryptionMethod(src.getEncryptionMethod()->cloneEncryptionMethod());
- if (src.getKeyInfo())
- setKeyInfo(src.getKeyInfo()->cloneKeyInfo());
- if (src.getCipherData())
- setCipherData(src.getCipherData()->cloneCipherData());
- if (src.getEncryptionProperties())
- setEncryptionProperties(src.getEncryptionProperties()->cloneEncryptionProperties());
+ IMPL_CLONE_ATTRIB(Id);
+ IMPL_CLONE_ATTRIB(Type);
+ IMPL_CLONE_ATTRIB(MimeType);
+ IMPL_CLONE_ATTRIB(Encoding);
+ IMPL_CLONE_TYPED_CHILD(EncryptionMethod);
+ IMPL_CLONE_TYPED_CHILD(KeyInfo);
+ IMPL_CLONE_TYPED_CHILD(CipherData);
+ IMPL_CLONE_TYPED_CHILD(EncryptionProperties);