org.jdtaus.banking.BankleitzahlenVerzeichnis Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdtaus-banking-api Show documentation
Show all versions of jdtaus-banking-api Show documentation
jDTAUS banking application programming interface.
/*
* jDTAUS Banking API
* Copyright (C) 2005 Christian Schulte
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or any later version.
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
package org.jdtaus.banking;
import java.util.Date;
/**
* Public directory of german bank codes.
* For further information see the
* Merkblatt Bankleitzahlendatei. An updated version of the document
* may be found at Deutsche Bundesbank.
* Example: Getting the jDTAUS Banking SPI implementation.
* BankleitzahlenVerzeichnis directory =
* (BankleitzahlenVerzeichnis) ContainerFactory.getContainer().
* getObject( BankleitzahlenVerzeichnis.class );
*
*
* @author Christian Schulte
* @version $JDTAUS: BankleitzahlenVerzeichnis.java 8725 2012-10-04 21:26:50Z schulte $
*
* @see org.jdtaus.core.container.Container
*/
public interface BankleitzahlenVerzeichnis
{
/**
* Gets the date of expiration of the data.
*
* @return the date of expiration of the data.
*/
Date getDateOfExpiration();
/**
* Gets the record of the head office for a given Bankleitzahl.
*
* @param bankCode A Bankleitzahl to return the record of the corresponding head office for.
*
* @return The head office of the bank identified by {@code bankCode} or {@code null} if no head office exists for
* {@code bankCode}.
*
* @throws NullPointerException if {@code bankCode} is {@code null}.
* @throws BankleitzahlExpirationException if {@code bankCode} has expired.
*/
BankleitzahlInfo getHeadOffice( Bankleitzahl bankCode ) throws BankleitzahlExpirationException;
/**
* Gets the records of the branch offices for a given Bankleitzahl.
*
* @param bankCode The Bankleitzahl to return the records of corresponding branch offices for.
*
* @return The branch offices of the bank identified by {@code bankCode} or an empty array if the directory does not
* hold corresponding records for {@code bankCode}.
*
* @throws NullPointerException if {@code bankCode} is {@code null}.
* @throws BankleitzahlExpirationException if {@code bankCode} has expired.
*/
BankleitzahlInfo[] getBranchOffices( Bankleitzahl bankCode ) throws BankleitzahlExpirationException;
/**
* Searches the directory for records matching the given criteria.
*
* @param name Text to select records whose property {@code name} matches the given text; {@code null} to ignore
* property {@code name} in the search.
* @param postalCode Text to select records whose property {@code postalCode} matches the given text; {@code null}
* to ignore property {@code postalCode} in the search.
* @param city Text to select records whose property {@code city} matches the given text; {@code null} to ignore
* property {@code city} in the search.
* @param branchOffices {@code true} to return records for branch offices; {@code false} to return records for head
* offices.
*
* @return All records matching the given criteria.
*
* @throws IllegalArgumentException if {@code name}, {@code postalCode} or {@code city} contains data which cannot
* be used for searching the directory.
*
* @deprecated Replaced by {@link #searchBankleitzahlInfos(java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean, java.lang.Boolean)}.
*/
BankleitzahlInfo[] search( String name, String postalCode, String city, boolean branchOffices );
/**
* Searches the directory for records matching the given criteria.
*
* @param name Text to select records whose property {@code name} matches the given text; {@code null} to ignore
* property {@code name} during searching.
* @param postalCode Text to select records whose property {@code postalCode} matches the given text; {@code null}
* to ignore property {@code postalCode} during searching.
* @param city Text to select records whose property {@code city} matches the given text; {@code null} to ignore
* property {@code city} during searching.
* @param headOffices {@code true} to return head office records; {@code false} to not return head office records;
* {@code null} to ignore property {@code headOffice} during searching.
* @param branchOffices {@code true} to return branch office records; {@code false} to not return branch office
* records; {@code null} to ignore property {@code headOffice} during searching.
*
* @return All records matching the given criteria.
*
* @throws IllegalArgumentException if {@code name}, {@code postalCode} or {@code city} contains data which cannot
* be used for searching the directory.
*/
BankleitzahlInfo[] searchBankleitzahlInfos( String name, String postalCode, String city, Boolean headOffices,
Boolean branchOffices );
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy