]> git.mxchange.org Git - jcore.git/commitdiff
Missed this one ...
authorRoland Haeder <roland@mxchange.org>
Thu, 6 Aug 2015 12:05:51 +0000 (14:05 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 6 Aug 2015 12:05:51 +0000 (14:05 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/contact/BaseContact.java
src/org/mxchange/jcore/contact/Contact.java

index 7b5b1c691470ada0e050c097b8a3f80a4e65b056..0caf206f213ede301e003ab5225b299df16e339b 100644 (file)
@@ -152,6 +152,16 @@ public class BaseContact extends BaseFrameworkSystem implements Contact {
                return this.birthday;
        }
 
+       /**
+        * Birth day
+        *
+        * @param birthday the birthday to set
+        */
+       @Override
+       public final void setBirthday (final String birthday) {
+               this.birthday = birthday;
+       }
+
        /**
         * Cellphone number
         *
@@ -162,6 +172,16 @@ public class BaseContact extends BaseFrameworkSystem implements Contact {
                return this.cellphoneNumber;
        }
 
+       /**
+        * Cellphone number
+        *
+        * @param cellphoneNumber the cellphoneNumber to set
+        */
+       @Override
+       public final void setCellphoneNumber (final String cellphoneNumber) {
+               this.cellphoneNumber = cellphoneNumber;
+       }
+
        /**
         * City
         *
@@ -367,6 +387,16 @@ public class BaseContact extends BaseFrameworkSystem implements Contact {
                return this.houseNumber;
        }
 
+       /**
+        * House number
+        *
+        * @param houseNumber the houseNumber to set
+        */
+       @Override
+       public final void setHouseNumber (final int houseNumber) {
+               this.houseNumber = houseNumber;
+       }
+
        /**
         * Phone number
         *
@@ -377,6 +407,16 @@ public class BaseContact extends BaseFrameworkSystem implements Contact {
                return this.phoneNumber;
        }
 
+       /**
+        * Phone number
+        *
+        * @param phoneNumber the phoneNumber to set
+        */
+       @Override
+       public final void setPhoneNumber (final String phoneNumber) {
+               this.phoneNumber = phoneNumber;
+       }
+
        /**
         * Street
         *
@@ -407,6 +447,16 @@ public class BaseContact extends BaseFrameworkSystem implements Contact {
                return this.surname;
        }
 
+       /**
+        * Surname
+        *
+        * @param surname the surname to set
+        */
+       @Override
+       public final void setSurname (final String surname) {
+               this.surname = surname;
+       }
+
        /**
         * Some "getter" for a translated/human-readable gender
         *
@@ -421,6 +471,40 @@ public class BaseContact extends BaseFrameworkSystem implements Contact {
                return translated;
        }
 
+       /**
+        * Some "getter for a value from given column name. This name will be
+        * translated into a method name and then this method is called.
+        *
+        * @param columnName Column name
+        * @return Value from field
+        */
+       @Override
+       public Object getValueFromColumn (final String columnName) {
+               // Trace message
+               this.getLogger().trace(MessageFormat.format("columnName={0} - CALLED!", columnName));
+               
+               // Determine if the given column is boolean
+               if (this.isBooleanField(this, "BaseContact", columnName)) {
+                       // Yes, then call other method
+                       return this.getBooleanField(this, "BaseContact", columnName);
+               }
+               
+               // Convert column name to field name
+               String methodName = this.convertColumnNameToGetterMethod(columnName, false);
+               
+               // Debug message
+               this.getLogger().debug(MessageFormat.format("field={0}", methodName));
+               
+               // Get field
+               Object value = this.getField(this, "BaseContact", methodName);
+               
+               // Trace message
+               this.getLogger().trace("value=" + value + " - EXIT!");
+               
+               // Return it
+               return value;
+       }
+
        /**
         * ZIP code
         *
@@ -463,123 +547,6 @@ public class BaseContact extends BaseFrameworkSystem implements Contact {
                return this.ownContact;
        }
 
-       /**
-        * Shows this contact to the user
-        *
-        * @param client Client instance to use
-        */
-       @Override
-       public void show (final Client client) {
-               // Trace message
-               this.getLogger().trace(MessageFormat.format("client={0} - CALLED!", client)); //NOI18N
-
-               // The client must be set
-               if (client == null) {
-                       // Not set
-                       throw new NullPointerException("client is null");
-               }
-
-               // Display name "box"
-               client.displayNameBox(this);
-
-               // Display address "box"
-               client.displayAddressBox(this);
-
-               // Display other data "box"
-               client.displayOtherDataBox(this);
-       }
-
-       /**
-        * Enables the flag "own data" which signals that this contact is the user's
-        * own data.
-        */
-       protected final void enableFlagOwnContact () {
-               this.ownContact = true;
-       }
-
-       /**
-        * Surname
-        *
-        * @param surname the surname to set
-        */
-       @Override
-       public final void setSurname (final String surname) {
-               this.surname = surname;
-       }
-
-       /**
-        * Phone number
-        *
-        * @param phoneNumber the phoneNumber to set
-        */
-       @Override
-       public final void setPhoneNumber (final String phoneNumber) {
-               this.phoneNumber = phoneNumber;
-       }
-
-       /**
-        * House number
-        *
-        * @param houseNumber the houseNumber to set
-        */
-       public final void setHouseNumber (final int houseNumber) {
-               this.houseNumber = houseNumber;
-       }
-
-       /**
-        * Cellphone number
-        *
-        * @param cellphoneNumber the cellphoneNumber to set
-        */
-       @Override
-       public final void setCellphoneNumber (final String cellphoneNumber) {
-               this.cellphoneNumber = cellphoneNumber;
-       }
-
-       /**
-        * Birth day
-        *
-        * @param birthday the birthday to set
-        */
-       @Override
-       public final void setBirthday (final String birthday) {
-               this.birthday = birthday;
-       }
-
-       /**
-        * Some "getter for a value from given column name. This name will be
-        * translated into a method name and then this method is called.
-        *
-        * @param columnName Column name
-        * @return Value from field
-        */
-       @Override
-       public Object getValueFromColumn (final String columnName) {
-               // Trace message
-               this.getLogger().trace(MessageFormat.format("columnName={0} - CALLED!", columnName));
-               
-               // Determine if the given column is boolean
-               if (this.isBooleanField(this, "BaseContact", columnName)) {
-                       // Yes, then call other method
-                       return this.getBooleanField(this, "BaseContact", columnName);
-               }
-               
-               // Convert column name to field name
-               String methodName = this.convertColumnNameToGetterMethod(columnName, false);
-               
-               // Debug message
-               this.getLogger().debug(MessageFormat.format("field={0}", methodName));
-               
-               // Get field
-               Object value = this.getField(this, "BaseContact", methodName);
-               
-               // Trace message
-               this.getLogger().trace("value=" + value + " - EXIT!");
-               
-               // Return it
-               return value;
-       }
-
        /**
         * Checks if given boolean field is available and set to same value
         *
@@ -613,4 +580,38 @@ public class BaseContact extends BaseFrameworkSystem implements Contact {
                // Return result
                return isFound;
        }
+
+       /**
+        * Shows this contact to the user
+        *
+        * @param client Client instance to use
+        */
+       @Override
+       public void show (final Client client) {
+               // Trace message
+               this.getLogger().trace(MessageFormat.format("client={0} - CALLED!", client)); //NOI18N
+               
+               // The client must be set
+               if (client == null) {
+                       // Not set
+                       throw new NullPointerException("client is null");
+               }
+               
+               // Display name "box"
+               client.displayNameBox(this);
+               
+               // Display address "box"
+               client.displayAddressBox(this);
+               
+               // Display other data "box"
+               client.displayOtherDataBox(this);
+       }
+
+       /**
+        * Enables the flag "own data" which signals that this contact is the user's
+        * own data.
+        */
+       protected final void enableFlagOwnContact () {
+               this.ownContact = true;
+       }
 }
index 2760dac632df0d322b8ea75c90dd1800a1bc81a2..af6141ebd079a68083a8efd9c40b78026253173c 100644 (file)
@@ -116,6 +116,13 @@ public interface Contact extends FrameworkInterface {
         */
        public int getHouseNumber ();
 
+       /**
+        * House number
+        *
+        * @param houseNumber the houseNumber to set
+        */
+       public void setHouseNumber (final int houseNumber);
+
        /**
         * ZIP code
         *