]> git.mxchange.org Git - jcore.git/commitdiff
Ignored some strings for internationalization + some debug messages added
authorRoland Haeder <roland@mxchange.org>
Mon, 10 Aug 2015 13:08:15 +0000 (15:08 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 10 Aug 2015 13:08:15 +0000 (15:08 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

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

index efee7136d7fd176c699223bed27901506877696f..d31239b48a9f25fc822a8f44c953327834af7ba8 100644 (file)
@@ -613,16 +613,16 @@ public class BaseFrameworkSystem implements FrameworkInterface {
         */
        protected Object convertNullToEmpty (final Object str) {
                // Trace message
-               this.getLogger().trace(MessageFormat.format("str={0}", str));
+               this.getLogger().trace(MessageFormat.format("str={0}", str)); //NOI18N
                
                // Is it null?
                if (str == null) {
                        // Return empty string
-                       return "";
+                       return ""; //NOI18N
                }
 
                // Trace message
-               this.getLogger().trace(MessageFormat.format("str={0} - EXIT!", str));
+               this.getLogger().trace(MessageFormat.format("str={0} - EXIT!", str)); //NOI18N
                
                // Return it
                return str;
@@ -637,40 +637,46 @@ public class BaseFrameworkSystem implements FrameworkInterface {
         */
        protected Iterator<Map.Entry<Field, Object>> fieldIterator (final FrameworkInterface instance, final String className) {
                // Trace message
-               this.getLogger().trace(MessageFormat.format("instance={0},className={1} - CALLED!", instance, className));
-               
+               this.getLogger().trace(MessageFormat.format("instance={0},className={1} - CALLED!", instance, className)); //NOI18N
+
                // Get all attributes from given instance
                Field[] fields = this.getClassFromTarget(instance, className).getDeclaredFields();
-               
+
                // Debug message
-               this.getLogger().debug(MessageFormat.format("Found {0} fields.", fields.length));
-               
+               this.getLogger().debug(MessageFormat.format("Found {0} fields.", fields.length)); //NOI18N
+
                // A simple map with K=fieldName and V=Value is fine
                Map<Field, Object> map = new HashMap<>(fields.length);
-               
+
                // Walk through all
                for (final Field field : fields) {
                        // Debug log
-                       this.getLogger().debug(MessageFormat.format("field={0}", field.getName()));
+                       this.getLogger().debug(MessageFormat.format("field={0}", field.getName())); //NOI18N
 
                        // Does the field start with "$"?
-                       if (field.getName().startsWith("$")) {
+                       if (field.getName().startsWith("$")) { //NOI18N
+                               // Debug message
+                               this.getLogger().debug(MessageFormat.format("Skipping field={0} as it starts with a dollar character.", field.getName())); //NOI18N
+
                                // Skip it silently
                                continue;
                        }
 
+                       // Debug message
+                       this.getLogger().debug(MessageFormat.format("Calling getValueFromColumn({0}) on instance {1} ...", field.getName(), instance));
+
                        // Get value from it
-                       Object value = this.getValueFromColumn(field.getName());
+                       Object value = instance.getValueFromColumn(field.getName());
 
                        // Debug message
-                       this.getLogger().debug(MessageFormat.format("value={0}", value));
+                       this.getLogger().debug(MessageFormat.format("Adding field={0},value={1}", field.getName(), value)); //NOI18N
 
                        // Add it to list
                        map.put(field, value);
                }
 
                // Debug message
-               this.getLogger().debug(MessageFormat.format("Returning iterator for {0} entries ...", map.size()));
+               this.getLogger().debug(MessageFormat.format("Returning iterator for {0} entries ...", map.size())); //NOI18N
 
                // Return list iterator
                return map.entrySet().iterator();
@@ -737,7 +743,7 @@ public class BaseFrameworkSystem implements FrameworkInterface {
                // Is the bundle set?
                if (bundle instanceof ResourceBundle) {
                        // Is already set
-                       throw new IllegalStateException("called twice");
+                       throw new IllegalStateException("called twice"); //NOI18N
                }
 
                // Set instance
index 75f51fdf1d5ac358d1e88cd845a06ca1bf379d19..465289a7abfc4adac2db1af68aa49c62e9b8eb07 100644 (file)
@@ -171,7 +171,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact {
         * @return the cellphoneNumber
         */
        @Override
-       public String getCellphoneNumber () {
+       public final String getCellphoneNumber () {
                return this.cellphoneNumber;
        }
 
@@ -327,6 +327,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact {
         */
        @Override
        public String getFamilyName () {
+               //* NOISY-DEBUG: */ this.getLogger().trace("CALLED!");
                return this.familyName;
        }
 
@@ -337,6 +338,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact {
         */
        @Override
        public final void setFamilyName (final String familyName) {
+               /* NOISY-DEBUG: */ this.getLogger().trace(MessageFormat.format("familyName={0} - CALLED!", familyName));
                this.familyName = familyName;
        }
 
index 85896f5bd637ee87ffaf93ecc5f2fcbd1b0d07d0..c3f547644c2a06621ac13767a724f907746388dd 100644 (file)
@@ -30,6 +30,7 @@ import org.mxchange.jcore.client.Client;
 public interface Contact extends FrameworkInterface {
        /**
         * Returns an iterator of all values from this object
+        *
         * @return An iterator
         */
        public Iterator<Map.Entry<Field, Object>> iterator ();