*/
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;
*/
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();
// Is the bundle set?
if (bundle instanceof ResourceBundle) {
// Is already set
- throw new IllegalStateException("called twice");
+ throw new IllegalStateException("called twice"); //NOI18N
}
// Set instance
* @return the cellphoneNumber
*/
@Override
- public String getCellphoneNumber () {
+ public final String getCellphoneNumber () {
return this.cellphoneNumber;
}
*/
@Override
public String getFamilyName () {
+ //* NOISY-DEBUG: */ this.getLogger().trace("CALLED!");
return this.familyName;
}
*/
@Override
public final void setFamilyName (final String familyName) {
+ /* NOISY-DEBUG: */ this.getLogger().trace(MessageFormat.format("familyName={0} - CALLED!", familyName));
this.familyName = familyName;
}