Class Converter


  • public class Converter
    extends java.lang.Object
    Hilfeklasse, welche Objekte aus HBCI4Java in unsere Datenstrukturen konvertiert und umgekehrt.
    • Constructor Summary

      Constructors 
      Constructor Description
      Converter()  
    • 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: Das zugeordnete Konto wird nicht gefuellt. Es ist daher Sache des Aufrufers, noch die Funktion umsatz.setKonto(Konto) aufzurufen, damit das Objekt in der Datenbank gespeichert werden kann.
        Parameters:
        u - der zu convertierende Umsatz.
        Returns:
        das neu erzeugte Umsatz-Objekt.
        Throws:
        java.rmi.RemoteException
      • HibiscusUmsatz2HBCIUmsatz

        public static org.kapott.hbci.GV_Result.GVRKUms.UmsLine HibiscusUmsatz2HBCIUmsatz​(Umsatz u)
                                                                                   throws java.rmi.RemoteException
        Konvertiert einen einzelnen Umsatz von Hibiscus nach HBCI4Java.
        Parameters:
        u - der zu convertierende Umsatz.
        Returns:
        das neu erzeugte Umsatz-Objekt.
        Throws:
        java.rmi.RemoteException
      • HBCIDauer2HibiscusSepaDauerauftrag

        public static SepaDauerauftrag HBCIDauer2HibiscusSepaDauerauftrag​(org.kapott.hbci.GV_Result.GVRDauerList.Dauer d)
                                                                   throws java.rmi.RemoteException,
                                                                          de.willuhn.util.ApplicationException
        Konvertiert eine Zeile aus der Liste der abgerufenen SEPA-Dauerauftraege.
        Parameters:
        d - der SEPA-Dauerauftrag aus HBCI4Java.
        Returns:
        Unser Dauerauftrag.
        Throws:
        java.rmi.RemoteException
        de.willuhn.util.ApplicationException
      • HBCIKontoauszug2HibiscusKontoauszug

        public static Kontoauszug HBCIKontoauszug2HibiscusKontoauszug​(Konto kt,
                                                                      org.kapott.hbci.GV_Result.GVRKontoauszug.GVRKontoauszugEntry k)
                                                               throws java.rmi.RemoteException,
                                                                      de.willuhn.util.ApplicationException
        Konvertiert einen abgerufenen Kontoauszug von HBCI4Java in das Format von Hibiscus. Achtung: Die Binaer-Daten werden hierbei ignoriert. Es ist Aufgabe des Aufrufers, die passend zu speichern.
        Parameters:
        kt - das Konto, uber das die Kontoauszuege abgerufen wurden.
        k - der Kontoauszug von HBCI4Java.
        Returns:
        der Kontoauszug von Hibiscus.
        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 Passport uebereinstimmt.
        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