From: Roland Häder Date: Sat, 5 Aug 2017 18:21:21 +0000 (+0200) Subject: renamed event classes/interfaces as these events are generic enough X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5a8aa3754843ede7a440b76cef9564609c00590f;p=jphone-core.git renamed event classes/interfaces as these events are generic enough Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jphone/events/fax/created/CreatedFaxNumberEvent.java b/src/org/mxchange/jphone/events/fax/created/CreatedFaxNumberEvent.java new file mode 100644 index 0000000..ae35a51 --- /dev/null +++ b/src/org/mxchange/jphone/events/fax/created/CreatedFaxNumberEvent.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2017 Roland Haeder + * + * 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jphone.events.fax.created; + +import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber; + +/** + * An event being fired when a fax number instance has been successfully + * created. + *

+ * @author Roland Haeder + */ +public class CreatedFaxNumberEvent implements ObservableCreatedFaxNumberEvent { + + /** + * Serial number + */ + private static final long serialVersionUID = 50_498_269_827_581L; + + /** + * Fax number + */ + private DialableFaxNumber faxNumber; + + /** + * Constructor with fax number instance + *

+ * @param faxNumber Fax number instance + */ + public CreatedFaxNumberEvent (final DialableFaxNumber faxNumber) { + this.faxNumber = faxNumber; + } + + @Override + public DialableFaxNumber getFaxNumber () { + return this.faxNumber; + } + + @Override + public void setFaxNumber (final DialableFaxNumber faxNumber) { + this.faxNumber = faxNumber; + } + +} diff --git a/src/org/mxchange/jphone/events/fax/created/ObservableCreatedFaxNumberEvent.java b/src/org/mxchange/jphone/events/fax/created/ObservableCreatedFaxNumberEvent.java new file mode 100644 index 0000000..dff42a0 --- /dev/null +++ b/src/org/mxchange/jphone/events/fax/created/ObservableCreatedFaxNumberEvent.java @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2017 Roland Häder + * + * 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jphone.events.fax.created; + +import java.io.Serializable; +import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber; + +/** + * An event being fired when a fax number instance has been successfully + * created. + *

+ * @author Roland Häder + */ +public interface ObservableCreatedFaxNumberEvent extends Serializable { + + /** + * Getter for fax number + *

+ * @return Fax number + */ + DialableFaxNumber getFaxNumber (); + + /** + * Setter for fax number + *

+ * @param faxNumber Fax number + */ + void setFaxNumber (final DialableFaxNumber faxNumber); + +} diff --git a/src/org/mxchange/jphone/events/helper/fax/created/HelperCreatedFaxNumberEvent.java b/src/org/mxchange/jphone/events/helper/fax/created/HelperCreatedFaxNumberEvent.java deleted file mode 100644 index 2ee48f9..0000000 --- a/src/org/mxchange/jphone/events/helper/fax/created/HelperCreatedFaxNumberEvent.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2017 Roland Haeder - * - * 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.mxchange.jphone.events.helper.fax.created; - -import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber; - -/** - * An event being fired when a bean helper has successfully created a fax number - * instance. - *

- * @author Roland Haeder - */ -public class HelperCreatedFaxNumberEvent implements ObservableHelperCreatedFaxNumberEvent { - - /** - * Serial number - */ - private static final long serialVersionUID = 50_498_269_827_581L; - - /** - * Fax number - */ - private DialableFaxNumber faxNumber; - - /** - * Constructor with fax number instance - *

- * @param faxNumber Fax number instance - */ - public HelperCreatedFaxNumberEvent (final DialableFaxNumber faxNumber) { - this.faxNumber = faxNumber; - } - - @Override - public DialableFaxNumber getFaxNumber () { - return this.faxNumber; - } - - @Override - public void setFaxNumber (final DialableFaxNumber faxNumber) { - this.faxNumber = faxNumber; - } - -} diff --git a/src/org/mxchange/jphone/events/helper/fax/created/ObservableHelperCreatedFaxNumberEvent.java b/src/org/mxchange/jphone/events/helper/fax/created/ObservableHelperCreatedFaxNumberEvent.java deleted file mode 100644 index e28a4d1..0000000 --- a/src/org/mxchange/jphone/events/helper/fax/created/ObservableHelperCreatedFaxNumberEvent.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2017 Roland Häder - * - * 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.mxchange.jphone.events.helper.fax.created; - -import java.io.Serializable; -import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber; - -/** - * An interface for observable events when a bean helper has successfully - * created a fax number instance. - *

- * @author Roland Häder - */ -public interface ObservableHelperCreatedFaxNumberEvent extends Serializable { - - /** - * Getter for fax number - *

- * @return Fax number - */ - DialableFaxNumber getFaxNumber (); - - /** - * Setter for fax number - *

- * @param faxNumber Fax number - */ - void setFaxNumber (final DialableFaxNumber faxNumber); - -} diff --git a/src/org/mxchange/jphone/events/helper/landline/created/HelperCreatedLandLineNumberEvent.java b/src/org/mxchange/jphone/events/helper/landline/created/HelperCreatedLandLineNumberEvent.java deleted file mode 100644 index 0aef4e7..0000000 --- a/src/org/mxchange/jphone/events/helper/landline/created/HelperCreatedLandLineNumberEvent.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2017 Roland Haeder - * - * 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.mxchange.jphone.events.helper.landline.created; - -import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber; - -/** - * An event being fired when a bean helper has successfully created a fax number - * instance. - *

- * @author Roland Haeder - */ -public class HelperCreatedLandLineNumberEvent implements ObservableHelperCreatedLandLineNumberEvent { - - /** - * Serial number - */ - private static final long serialVersionUID = 50_498_269_827_582L; - - /** - * Land-line number - */ - private DialableLandLineNumber landLineNumber; - - /** - * Constructor with fax number instance - *

- * @param landLineNumber Land-line number instance - */ - public HelperCreatedLandLineNumberEvent (final DialableLandLineNumber landLineNumber) { - this.landLineNumber = landLineNumber; - } - - @Override - public DialableLandLineNumber getLandLineNumber () { - return this.landLineNumber; - } - - @Override - public void setLandLineNumber (final DialableLandLineNumber landLineNumber) { - this.landLineNumber = landLineNumber; - } - -} diff --git a/src/org/mxchange/jphone/events/helper/landline/created/ObservableHelperCreatedLandLineNumberEvent.java b/src/org/mxchange/jphone/events/helper/landline/created/ObservableHelperCreatedLandLineNumberEvent.java deleted file mode 100644 index 56f2e60..0000000 --- a/src/org/mxchange/jphone/events/helper/landline/created/ObservableHelperCreatedLandLineNumberEvent.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2017 Roland Häder - * - * 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.mxchange.jphone.events.helper.landline.created; - -import java.io.Serializable; -import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber; - -/** - * An interface for observable events when a bean helper has successfully - * created a land-line number instance. - *

- * @author Roland Häder - */ -public interface ObservableHelperCreatedLandLineNumberEvent extends Serializable { - - /** - * Getter for landLine number - *

- * @return Land-line number - */ - DialableLandLineNumber getLandLineNumber (); - - /** - * Setter for landLine number - *

- * @param landLineNumber Land-line number - */ - void setLandLineNumber (final DialableLandLineNumber landLineNumber); - -} diff --git a/src/org/mxchange/jphone/events/helper/mobile/created/HelperCreatedMobileNumberEvent.java b/src/org/mxchange/jphone/events/helper/mobile/created/HelperCreatedMobileNumberEvent.java deleted file mode 100644 index efec208..0000000 --- a/src/org/mxchange/jphone/events/helper/mobile/created/HelperCreatedMobileNumberEvent.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2017 Roland Haeder - * - * 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.mxchange.jphone.events.helper.mobile.created; - -import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; - -/** - * An event being fired when a bean helper has successfully created a fax number - * instance. - *

- * @author Roland Haeder - */ -public class HelperCreatedMobileNumberEvent implements ObservableHelperCreatedMobileNumberEvent { - - /** - * Serial number - */ - private static final long serialVersionUID = 50_498_269_827_583L; - - /** - * Mobile number - */ - private DialableMobileNumber mobileNumber; - - /** - * Constructor with fax number instance - *

- * @param mobileNumber Mobile number instance - */ - public HelperCreatedMobileNumberEvent (final DialableMobileNumber mobileNumber) { - this.mobileNumber = mobileNumber; - } - - @Override - public DialableMobileNumber getMobileNumber () { - return this.mobileNumber; - } - - @Override - public void setMobileNumber (final DialableMobileNumber mobileNumber) { - this.mobileNumber = mobileNumber; - } - -} diff --git a/src/org/mxchange/jphone/events/helper/mobile/created/ObservableHelperCreatedMobileNumberEvent.java b/src/org/mxchange/jphone/events/helper/mobile/created/ObservableHelperCreatedMobileNumberEvent.java deleted file mode 100644 index 559dd14..0000000 --- a/src/org/mxchange/jphone/events/helper/mobile/created/ObservableHelperCreatedMobileNumberEvent.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2017 Roland Häder - * - * 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.mxchange.jphone.events.helper.mobile.created; - -import java.io.Serializable; -import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; - -/** - * An interface for observable events when a bean helper has successfully - * created a mobile number instance. - *

- * @author Roland Häder - */ -public interface ObservableHelperCreatedMobileNumberEvent extends Serializable { - - /** - * Getter for mobile number - *

- * @return Mobile number - */ - DialableMobileNumber getMobileNumber (); - - /** - * Setter for mobile number - *

- * @param mobileNumber Mobile number - */ - void setMobileNumber (final DialableMobileNumber mobileNumber); - -} diff --git a/src/org/mxchange/jphone/events/landline/created/CreatedLandLineNumberEvent.java b/src/org/mxchange/jphone/events/landline/created/CreatedLandLineNumberEvent.java new file mode 100644 index 0000000..25deee2 --- /dev/null +++ b/src/org/mxchange/jphone/events/landline/created/CreatedLandLineNumberEvent.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2017 Roland Haeder + * + * 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jphone.events.landline.created; + +import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber; + +/** + * An event being fired when a land-line number instance has been successfully + * created.. + *

+ * @author Roland Haeder + */ +public class CreatedLandLineNumberEvent implements ObservableCreatedLandLineNumberEvent { + + /** + * Serial number + */ + private static final long serialVersionUID = 50_498_269_827_582L; + + /** + * Land-line number + */ + private DialableLandLineNumber landLineNumber; + + /** + * Constructor with fax number instance + *

+ * @param landLineNumber Land-line number instance + */ + public CreatedLandLineNumberEvent (final DialableLandLineNumber landLineNumber) { + this.landLineNumber = landLineNumber; + } + + @Override + public DialableLandLineNumber getLandLineNumber () { + return this.landLineNumber; + } + + @Override + public void setLandLineNumber (final DialableLandLineNumber landLineNumber) { + this.landLineNumber = landLineNumber; + } + +} diff --git a/src/org/mxchange/jphone/events/landline/created/ObservableCreatedLandLineNumberEvent.java b/src/org/mxchange/jphone/events/landline/created/ObservableCreatedLandLineNumberEvent.java new file mode 100644 index 0000000..70f9d20 --- /dev/null +++ b/src/org/mxchange/jphone/events/landline/created/ObservableCreatedLandLineNumberEvent.java @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2017 Roland Häder + * + * 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jphone.events.landline.created; + +import java.io.Serializable; +import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber; + +/** + * An event being fired when a land-line number instance has been successfully + * created.. + *

+ * @author Roland Häder + */ +public interface ObservableCreatedLandLineNumberEvent extends Serializable { + + /** + * Getter for landLine number + *

+ * @return Land-line number + */ + DialableLandLineNumber getLandLineNumber (); + + /** + * Setter for landLine number + *

+ * @param landLineNumber Land-line number + */ + void setLandLineNumber (final DialableLandLineNumber landLineNumber); + +} diff --git a/src/org/mxchange/jphone/events/mobile/created/CreatedMobileNumberEvent.java b/src/org/mxchange/jphone/events/mobile/created/CreatedMobileNumberEvent.java new file mode 100644 index 0000000..36e4577 --- /dev/null +++ b/src/org/mxchange/jphone/events/mobile/created/CreatedMobileNumberEvent.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2017 Roland Haeder + * + * 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jphone.events.mobile.created; + +import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; + +/** + * An event being fired when a mobile number instance has been successfully + * created.. + *

+ * @author Roland Haeder + */ +public class CreatedMobileNumberEvent implements ObservableCreatedMobileNumberEvent { + + /** + * Serial number + */ + private static final long serialVersionUID = 50_498_269_827_583L; + + /** + * Mobile number + */ + private DialableMobileNumber mobileNumber; + + /** + * Constructor with fax number instance + *

+ * @param mobileNumber Mobile number instance + */ + public CreatedMobileNumberEvent (final DialableMobileNumber mobileNumber) { + this.mobileNumber = mobileNumber; + } + + @Override + public DialableMobileNumber getMobileNumber () { + return this.mobileNumber; + } + + @Override + public void setMobileNumber (final DialableMobileNumber mobileNumber) { + this.mobileNumber = mobileNumber; + } + +} diff --git a/src/org/mxchange/jphone/events/mobile/created/ObservableCreatedMobileNumberEvent.java b/src/org/mxchange/jphone/events/mobile/created/ObservableCreatedMobileNumberEvent.java new file mode 100644 index 0000000..f72c9fe --- /dev/null +++ b/src/org/mxchange/jphone/events/mobile/created/ObservableCreatedMobileNumberEvent.java @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2017 Roland Häder + * + * 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jphone.events.mobile.created; + +import java.io.Serializable; +import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; + +/** + * An event being fired when a mobile number instance has been successfully + * created.. + *

+ * @author Roland Häder + */ +public interface ObservableCreatedMobileNumberEvent extends Serializable { + + /** + * Getter for mobile number + *

+ * @return Mobile number + */ + DialableMobileNumber getMobileNumber (); + + /** + * Setter for mobile number + *

+ * @param mobileNumber Mobile number + */ + void setMobileNumber (final DialableMobileNumber mobileNumber); + +}