de.willuhn.jameica.hbci.server
Class Converter

java.lang.Object
  extended by de.willuhn.jameica.hbci.server.Converter

public class Converter
extends java.lang.Object

Hilfeklasse, welche Objekte aus HBCI4Java in unsere Datenstrukturen konvertiert und umgekehrt.


Constructor Summary
Converter()
           
 
Method Summary
static org.kapott.hbci.structures.Konto Address2HBCIKonto(Address adresse)
          Konvertiert einen Hibiscus-Adresse in ein HBCI4Java Konto.
static Dauerauftrag HBCIDauer2HibiscusDauerauftrag(org.kapott.hbci.GV_Result.GVRDauerList.Dauer d)
          Konvertiert eine Zeile aus der Liste der abgerufenen Dauerauftraege.
static HibiscusAddress HBCIKonto2Address(org.kapott.hbci.structures.Konto konto)
          Konvertiert ein HBCI4Java Konto in eine Hibiscus-Adresse.
static Konto HBCIKonto2HibiscusKonto(org.kapott.hbci.structures.Konto konto)
          Konvertiert ein HBCI4Java-Konto in ein Hibiscus Konto.
static Konto HBCIKonto2HibiscusKonto(org.kapott.hbci.structures.Konto konto, java.lang.Class passportClass)
          Konvertiert ein HBCI4Java-Konto in ein Hibiscus Konto.
static Umsatz HBCIUmsatz2HibiscusUmsatz(org.kapott.hbci.GV_Result.GVRKUms.UmsLine u)
          Konvertiert einen einzelnen Umsatz von HBCI4Java nach Hibiscus.
static org.kapott.hbci.structures.Konto HibiscusKonto2HBCIKonto(Konto konto)
          Konvertiert ein Hibiscus-Konto in ein HBCI4Java Konto.
static org.kapott.hbci.swift.DTAUS HibiscusSammelLastschrift2DTAUS(SammelLastschrift sl)
          Konvertiert eine Sammel-Lastschrift in DTAUS-Format.
static org.kapott.hbci.swift.DTAUS HibiscusSammelUeberweisung2DTAUS(SammelUeberweisung su)
          Konvertiert eine Sammel-Ueberweisung in DTAUS-Format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Converter

public Converter()
Method Detail

HBCIUmsatz2HibiscusUmsatz

public static Umsatz HBCIUmsatz2HibiscusUmsatz(org.kapott.hbci.GV_Result.GVRKUms.UmsLine u)
                                        throws java.rmi.RemoteException
Konvertiert einen einzelnen Umsatz von HBCI4Java nach Hibiscus.
WICHTIG:

Parameters:
u - der zu convertierende Umsatz.
Returns:
das neu erzeugte Umsatz-Objekt.
Throws:
java.rmi.RemoteException

HBCIDauer2HibiscusDauerauftrag

public static Dauerauftrag HBCIDauer2HibiscusDauerauftrag(org.kapott.hbci.GV_Result.GVRDauerList.Dauer d)
                                                   throws java.rmi.RemoteException,
                                                          de.willuhn.util.ApplicationException
Konvertiert eine Zeile aus der Liste der abgerufenen Dauerauftraege.

Parameters:
d - der Dauerauftrag aus HBCI4Java.
Returns:
Unser Dauerauftrag.
Throws:
java.rmi.RemoteException
de.willuhn.util.ApplicationException

HibiscusKonto2HBCIKonto

public static org.kapott.hbci.structures.Konto HibiscusKonto2HBCIKonto(Konto konto)
                                                                throws java.rmi.RemoteException
Konvertiert ein Hibiscus-Konto in ein HBCI4Java Konto.

Parameters:
konto - unser Konto.
Returns:
das HBCI4Java Konto.
Throws:
java.rmi.RemoteException

HBCIKonto2HibiscusKonto

public static Konto HBCIKonto2HibiscusKonto(org.kapott.hbci.structures.Konto konto,
                                            java.lang.Class passportClass)
                                     throws java.rmi.RemoteException
Konvertiert ein HBCI4Java-Konto in ein Hibiscus Konto. Existiert ein Konto mit dieser Kontonummer und BLZ bereits in Hibiscus, wird jenes stattdessen zurueckgeliefert.

Parameters:
konto - das HBCI4Java Konto.
passportClass - optionale Angabe einer Passport-Klasse. Ist er angegeben wird, nur dann ein existierendes Konto verwendet, wenn neben Kontonummer und BLZ auch die Klasse des Passportuebereinstimmt.
Returns:
unser Konto.
Throws:
java.rmi.RemoteException

HBCIKonto2HibiscusKonto

public static Konto HBCIKonto2HibiscusKonto(org.kapott.hbci.structures.Konto konto)
                                     throws java.rmi.RemoteException
Konvertiert ein HBCI4Java-Konto in ein Hibiscus Konto. Existiert ein Konto mit dieser Kontonummer und BLZ bereits in Hibiscus, wird jenes stattdessen zurueckgeliefert.

Parameters:
konto - das HBCI4Java Konto.
Returns:
unser Konto.
Throws:
java.rmi.RemoteException

Address2HBCIKonto

public static org.kapott.hbci.structures.Konto Address2HBCIKonto(Address adresse)
                                                          throws java.rmi.RemoteException
Konvertiert einen Hibiscus-Adresse in ein HBCI4Java Konto.

Parameters:
adresse - unsere Adresse.
Returns:
das HBCI4Java Konto.
Throws:
java.rmi.RemoteException

HBCIKonto2Address

public static HibiscusAddress HBCIKonto2Address(org.kapott.hbci.structures.Konto konto)
                                         throws java.rmi.RemoteException
Konvertiert ein HBCI4Java Konto in eine Hibiscus-Adresse.

Parameters:
konto - das HBCI-Konto.
Returns:
unsere Adresse.
Throws:
java.rmi.RemoteException

HibiscusSammelUeberweisung2DTAUS

public static org.kapott.hbci.swift.DTAUS HibiscusSammelUeberweisung2DTAUS(SammelUeberweisung su)
                                                                    throws java.rmi.RemoteException
Konvertiert eine Sammel-Ueberweisung in DTAUS-Format.

Parameters:
su - Sammel-Ueberweisung.
Returns:
DTAUS-Repraesentation.
Throws:
java.rmi.RemoteException

HibiscusSammelLastschrift2DTAUS

public static org.kapott.hbci.swift.DTAUS HibiscusSammelLastschrift2DTAUS(SammelLastschrift sl)
                                                                   throws java.rmi.RemoteException
Konvertiert eine Sammel-Lastschrift in DTAUS-Format.

Parameters:
sl - Sammel-Lastschrift.
Returns:
DTAUS-Repraesentation.
Throws:
java.rmi.RemoteException