+++ /dev/null
-/**
- *
- */
-package fr.mbdx.ixbus.client.impl;
-
-import org.w3c.dom.Element;
-
-import fr.mbdx.ixbus.client.Ack;
-import fr.mbdx.ixbus.client.Attachment;
-import fr.mbdx.ixbus.client.impl.cxf.ArrayOfAttachment;
-import fr.mbdx.ixbus.client.impl.cxf.Message;
-
-public class AckCfxImpl implements Ack {
-
- private static final long serialVersionUID = -6307481708094485072L;
-
- private boolean recu = false;
- private Statut statut = null;
- private String commentaire = null;
- private Attachment attachment = null;
-
- public AckCfxImpl() {
-
- }
-
- public AckCfxImpl(Message message) {
- Element node = (Element) message.getDescription().getAny();
- this.recu = Boolean.parseBoolean(Utils.getValueByTagName(node, "Recu"));
- String statutValue = Utils.getValueByTagName(node, "Statut");
- this.statut = statutValue.isEmpty() ? null : Statut.fromValue(statutValue);
- this.commentaire = Utils.getValueByTagName(node, "Commentaire");
- ArrayOfAttachment doc = message.getDocument();
- if (doc != null && doc.getAttachment().size() > 0) {
- this.attachment = new AttachmentCfxImpl(doc.getAttachment().get(0));
- }
- }
-
- /**
- * @return the recu
- */
- public boolean isRecu() {
- return this.recu;
- }
-
- /**
- * @param recu the recu to set
- */
- public void setRecu(boolean recu) {
- this.recu = recu;
- }
-
- /**
- * @return the statut
- */
- public Statut getStatut() {
- return this.statut;
- }
-
- /**
- * @param statut the statut to set
- */
- public void setStatut(Statut statut) {
- this.statut = statut;
- }
-
- /**
- * @return the commentaire
- */
- public String getCommentaire() {
- return this.commentaire;
- }
-
- /**
- * @param commentaire the commentaire to set
- */
- public void setCommentaire(String commentaire) {
- this.commentaire = commentaire;
- }
-
- /**
- * @return the attachment
- */
- public Attachment getAttachment() {
- return this.attachment;
- }
-
- /**
- * @param attachment the attachment to set
- */
- public void setAttachment(Attachment attachment) {
- this.attachment = attachment;
- }
-
-
-}