// Path: src/main/java/org/kopi/ebics/exception/EbicsException.java
// public class EbicsException extends Exception {
// 
//   /**
//    * A means to construct a server error.
//    */
//   public EbicsException() {}
// 
//   /**
//    * A means to construct a server error with an additional message.
//    * @param message the exception message
//    */
//   public EbicsException(String message) {
//     super(message);
//   }
//   /**
//    * A means to construct a server error with no additional message.
//    * @param returnCode the ebics return code.
//    */
//   public EbicsException(ReturnCode returnCode) {
//     this.returnCode = returnCode;
//   }
// 
//   /**
//    * A means to construct a server error with an additional message.
//    * @param returnCode the ebics return code.
//    * @param message the additional message.
//    */
//   public EbicsException(ReturnCode returnCode, String message) {
//     super(message);
//     this.returnCode = returnCode;
//   }
// 
//   /**
//    * Returns the standardized error code.
//    * @return the standardized error code.
//    */
//   public ReturnCode getReturnCode() {
//     return returnCode;
//   }
// 
//   // --------------------------------------------------------------------
//   // DATA MEMBERS
//   // --------------------------------------------------------------------
// 
//   private ReturnCode 		returnCode;
//   private static final long 	serialVersionUID = 2728820344946361669L;
// }
// 
// Path: src/main/java/org/kopi/ebics/interfaces/ContentFactory.java
// public interface ContentFactory extends Serializable {
// 
//   /**
//    * Returns a new data source of the data to be sent.
//    * The instance must ensure that the returned stream will
//    * deliver the identical data during the lifetime of this instance.
//    * Nevertheless how often the method will be called.
//    * @return a new data source of the data to be sent.
//    * @throws IOException
//    */
//   public InputStream getContent() throws IOException;
// }
// 
// Path: src/main/java/org/kopi/ebics/session/OrderType.java
// public enum OrderType {
//     HIA,
//     HAA,
//     HKD,
//     HPB,
//     HPD,
//     HTD,
//     INI,
//     FUL,
//     FDL,
//     SPR,
//     AZV,
//     C2C,
//     CCC,
//     CCT,
//     CCU,
//     CD1,
//     CDB,
//     CDC,
//     CDD,
//     DTE,
//     EUE,
//     HAC,
//     PTK,
//     STA
// }


import org.kopi.ebics.exception.EbicsException;
import org.kopi.ebics.interfaces.ContentFactory;
import org.kopi.ebics.session.OrderType;

/*
 * Copyright (c) 1990-2012 kopiLeft Development SARL, Bizerte, Tunisia
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 2.1 as published by the Free Software Foundation.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 * $Id$
 */

package org.kopi.ebics.xml;


/**
 * The <code>DTransferResponseElement</code> is the response element
 * for all ebics downloads transfers.
 *
 * @author Hachani
 *
 */
public class DTransferResponseElement extends TransferResponseElement {

  /**
   * Constructs a new <code>DTransferResponseElement</code> object.
   * @param factory the content factory
   * @param orderType the order type
   * @param name the element name.
   */
  public DTransferResponseElement(ContentFactory factory,
                                  OrderType orderType,
                                  String name)
  {
    super(factory, name);
  }

  @Override

// Path: src/main/java/org/kopi/ebics/exception/EbicsException.java
// public class EbicsException extends Exception {
// 
//   /**
//    * A means to construct a server error.
//    */
//   public EbicsException() {}
// 
//   /**
//    * A means to construct a server error with an additional message.
//    * @param message the exception message
//    */
//   public EbicsException(String message) {
//     super(message);
//   }
//   /**
//    * A means to construct a server error with no additional message.
//    * @param returnCode the ebics return code.
//    */
//   public EbicsException(ReturnCode returnCode) {
//     this.returnCode = returnCode;
//   }
// 
//   /**
//    * A means to construct a server error with an additional message.
//    * @param returnCode the ebics return code.
//    * @param message the additional message.
//    */
//   public EbicsException(ReturnCode returnCode, String message) {
//     super(message);
//     this.returnCode = returnCode;
//   }
// 
//   /**
//    * Returns the standardized error code.
//    * @return the standardized error code.
//    */
//   public ReturnCode getReturnCode() {
//     return returnCode;
//   }
// 
//   // --------------------------------------------------------------------
//   // DATA MEMBERS
//   // --------------------------------------------------------------------
// 
//   private ReturnCode 		returnCode;
//   private static final long 	serialVersionUID = 2728820344946361669L;
// }
// 
// Path: src/main/java/org/kopi/ebics/interfaces/ContentFactory.java
// public interface ContentFactory extends Serializable {
// 
//   /**
//    * Returns a new data source of the data to be sent.
//    * The instance must ensure that the returned stream will
//    * deliver the identical data during the lifetime of this instance.
//    * Nevertheless how often the method will be called.
//    * @return a new data source of the data to be sent.
//    * @throws IOException
//    */
//   public InputStream getContent() throws IOException;
// }
// 
// Path: src/main/java/org/kopi/ebics/session/OrderType.java
// public enum OrderType {
//     HIA,
//     HAA,
//     HKD,
//     HPB,
//     HPD,
//     HTD,
//     INI,
//     FUL,
//     FDL,
//     SPR,
//     AZV,
//     C2C,
//     CCC,
//     CCT,
//     CCU,
//     CD1,
//     CDB,
//     CDC,
//     CDD,
//     DTE,
//     EUE,
//     HAC,
//     PTK,
//     STA
// }


// Path: src/main/java/org/kopi/ebics/xml/DTransferResponseElement.java
import org.kopi.ebics.exception.EbicsException;
import org.kopi.ebics.interfaces.ContentFactory;
import org.kopi.ebics.session.OrderType;

/*
 * Copyright (c) 1990-2012 kopiLeft Development SARL, Bizerte, Tunisia
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 2.1 as published by the Free Software Foundation.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 * $Id$
 */

package org.kopi.ebics.xml;


/**
 * The <code>DTransferResponseElement</code> is the response element
 * for all ebics downloads transfers.
 *
 * @author Hachani
 *
 */
public class DTransferResponseElement extends TransferResponseElement {

  /**
   * Constructs a new <code>DTransferResponseElement</code> object.
   * @param factory the content factory
   * @param orderType the order type
   * @param name the element name.
   */
  public DTransferResponseElement(ContentFactory factory,
                                  OrderType orderType,
                                  String name)
  {
    super(factory, name);
  }

  @Override

  public void build() throws EbicsException {
