X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Faddressbook%2Ffacade%2Fcontact%2FContactFacade.java;h=0318ee930b1ee170d5e60f1a399eac171e477ef9;hb=de75d32b4097e17ee3c690172ca7c2dd0b8dcea0;hp=894bfc2bdb32794c8069014eee4d303c4825bc2a;hpb=661769cbcf33fec999e31cc360fd172c96d645f1;p=addressbook-swing.git diff --git a/src/org/mxchange/addressbook/facade/contact/ContactFacade.java b/src/org/mxchange/addressbook/facade/contact/ContactFacade.java index 894bfc2..0318ee9 100644 --- a/src/org/mxchange/addressbook/facade/contact/ContactFacade.java +++ b/src/org/mxchange/addressbook/facade/contact/ContactFacade.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017 Roland Häder + * Copyright (C) 2016, 2020 Free Software Foundation * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,12 +19,13 @@ package org.mxchange.addressbook.facade.contact; import java.io.IOException; import org.mxchange.jcontacts.contact.Contact; import org.mxchange.jcontacts.contact.title.PersonalTitle; -import org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException; +import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException; +import org.mxchange.jcontactsbusiness.exceptions.basicdata.BusinessDataAlreadyAddedException; import org.mxchange.jcore.facade.Facade; import org.mxchange.jcountry.data.Country; -import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber; import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber; +import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; /** * An interface for addressbook contact manager @@ -38,10 +39,11 @@ public interface ContactFacade extends Facade { *

* @param contact Contact instance to add *

- * @throws org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException If - * the contact is already added + * @throws + * org.mxchange.jcontactsbusiness.exceptions.basicdata.BusinessDataAlreadyAddedException + * If the contact is already added */ - void addContact (final Contact contact) throws BusinessContactAlreadyAddedException; + void addContact (final Contact contact) throws BusinessDataAlreadyAddedException; /** * Let the user add a new other address @@ -90,10 +92,9 @@ public interface ContactFacade extends Facade { /** * Asks user for own data *

- * @throws org.mxchange.jcontactsbusiness.exceptions.BusinessContactAlreadyAddedException If - * own contact is already added + * @throws ContactAlreadyAddedException If own contact is already added */ - void doEnterOwnData () throws BusinessContactAlreadyAddedException; + void doEnterOwnData () throws ContactAlreadyAddedException; /** * List all contacts @@ -218,14 +219,14 @@ public interface ContactFacade extends Facade { * @param columnIndex Column index *

* @return Human-readable column name TODO: This is needed for TableModel in - * Swing + * Swing */ String getTranslatedColumnName (final int columnIndex); /** * Somewhat "getter" for value from given row and column index *

- * @param rowIndex Row index + * @param rowIndex Row index * @param columnIndex Column index *

* @return Value from given row/column @@ -248,4 +249,5 @@ public interface ContactFacade extends Facade { * @param contact Contact being added TODO Add check for book size */ void registerContact (final Contact contact); + }