001/*
002 * Copyright (C) 2014 konik.io
003 *
004 * This file is part of Konik library.
005 *
006 * Konik library is free software: you can redistribute it and/or modify
007 * it under the terms of the GNU Affero General Public License as published by
008 * the Free Software Foundation, either version 3 of the License, or
009 * (at your option) any later version.
010 *
011 * Konik library is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014 * GNU Affero General Public License for more details.
015 *
016 * You should have received a copy of the GNU Affero General Public License
017 * along with Konik library.  If not, see <http://www.gnu.org/licenses/>.
018 */
019package io.konik.zugferd.entity;
020
021import javax.xml.bind.annotation.XmlAccessType;
022import javax.xml.bind.annotation.XmlAccessorType;
023import javax.xml.bind.annotation.XmlElement;
024import javax.xml.bind.annotation.XmlType;
025import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
026import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
027
028/**
029 * = The Financial Institution.
030 */
031@XmlAccessorType(XmlAccessType.FIELD)
032@XmlType(name = "", propOrder = { "bic", "germanBankleitzahl", "name" })
033public class FinancialInstitution {
034
035   @XmlElement(name = "BICID")
036   @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
037   private String bic;
038
039   @XmlElement(name = "GermanBankleitzahlID")
040   @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
041   private String germanBankleitzahl;
042
043   @XmlElement(name = "Name")
044   private String name;
045
046   FinancialInstitution() {
047      super();
048   }
049
050   /**
051    * Instantiates a new financial institution.
052    *
053    * @param bic the bic
054    */
055   public FinancialInstitution(String bic) {
056      super();
057      setBic(bic);
058   }
059
060   /**
061    * Gets the BIC.
062    * 
063    * @return the bic
064    */
065   public String getBic() {
066      return bic;
067   }
068
069   /**
070    * Sets the BIC.
071    *
072    * @param bic the new bic
073    * @return the financial institution
074    */
075   public FinancialInstitution setBic(String bic) {
076      this.bic = bic;
077      return this;
078   }
079
080   /**
081    * Gets the German bankleitzahl.
082    * 
083    * @return the german bankleitzahl
084    */
085   public String getGermanBankleitzahl() {
086      return germanBankleitzahl;
087   }
088
089   /**
090    * Sets the German bankleitzahl.
091    *
092    * @param germanBankleitzahl the new german bankleitzahl
093    * @return the financial institution
094    */
095   public FinancialInstitution setGermanBankleitzahl(String germanBankleitzahl) {
096      this.germanBankleitzahl = germanBankleitzahl;
097      return this;
098   }
099
100   /**
101    * Gets the name.
102    * 
103    * @return the name
104    */
105   public String getName() {
106      return name;
107   }
108
109   /**
110    * Sets the name.
111    *
112    * @param name the new name
113    * @return the financial institution
114    */
115   public FinancialInstitution setName(String name) {
116      this.name = name;
117      return this;
118   }
119
120}