From 3c79e00e7e16881aba1f1bce34aa89f766ce97c5 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 11 Apr 2016 12:04:19 +0200 Subject: [PATCH] added regex for mail gateway --- .../smsprovider/CellphoneProvider.java | 16 ++++++++++++++++ .../phonenumbers/smsprovider/SmsProvider.java | 15 +++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/src/org/mxchange/jphone/phonenumbers/smsprovider/CellphoneProvider.java b/src/org/mxchange/jphone/phonenumbers/smsprovider/CellphoneProvider.java index 1950692..09816e5 100644 --- a/src/org/mxchange/jphone/phonenumbers/smsprovider/CellphoneProvider.java +++ b/src/org/mxchange/jphone/phonenumbers/smsprovider/CellphoneProvider.java @@ -82,6 +82,12 @@ public class CellphoneProvider implements SmsProvider { @Column (name = "provider_id", nullable = false, updatable = false) private Long providerId; + /** + * Regular expression for mail gateway + */ + @Column (name = "provider_mail_regex", length = 30) + private String providerMailRegex; + /** * Name of the provider */ @@ -194,4 +200,14 @@ public class CellphoneProvider implements SmsProvider { this.providerName = providerName; } + @Override + public String getProviderMailRegex () { + return this.providerMailRegex; + } + + @Override + public void setProviderMailRegex (final String providerMailRegex) { + this.providerMailRegex = providerMailRegex; + } + } diff --git a/src/org/mxchange/jphone/phonenumbers/smsprovider/SmsProvider.java b/src/org/mxchange/jphone/phonenumbers/smsprovider/SmsProvider.java index 4d40fa9..18de431 100644 --- a/src/org/mxchange/jphone/phonenumbers/smsprovider/SmsProvider.java +++ b/src/org/mxchange/jphone/phonenumbers/smsprovider/SmsProvider.java @@ -97,9 +97,24 @@ public interface SmsProvider extends Serializable { */ void setProviderEntryCreated (final Calendar providerEntryCreated); + /** + * Getter for regular expression for mail gateway + *

+ * @return Regular expression for mail gateway + */ + String getProviderMailRegex (); + + /** + * Setter for regular expression for mail gateway + *

+ * @param providerMailRegex Regular expression for mail gateway + */ + void setProviderMailRegex (final String providerMailRegex); + @Override boolean equals (final Object object); @Override int hashCode (); + } -- 2.39.5