public static String getDescription(Change change) {
    switch (change.getType()) {
      case Change.TYPE_MASTER_VALUE_CHANGED:
        return "The master value has changed";
      case Change.TYPE_IMPORTED_STATUS_OLDER:
        return "The imported status is older than the database status";
      case Change.TYPE_IMPORTED_STATUS_NEWER:
        return "The imported status is newer than the database status";
      case Change.TYPE_LANGUAGE_ADDITION:
        return "The language \"" + change.getLanguage() + "\" does not exist in the database";
      case Change.TYPE_MASTER_LANGUAGE_ADDITION:
        return "The master language \"" + change.getMasterLanguage() + "\" does not exist in the database";
      case Change.TYPE_VALUE_CHANGED:
        if (change.isConflicting()) {
          return "The value and the status are conflicting";
        }
        return "The value has changed";
      case Change.TYPE_VALUE_AND_STATUS_CHANGED:
        if (change.isConflicting()) {
          return "The value and the status are conflicting";
        }
        return "The value and the status have changed";
      case Change.TYPE_KEY_ADDITION:
        return "The key does not exist in the database";
      default:
        return "Unknown change";
    }
  }
public static String getDescription ( Change change ) { switch ( change . getType ( ) ) { case Change . TYPE_MASTER_VALUE_CHANGED : return "The master value has changed" ; case Change . TYPE_IMPORTED_STATUS_OLDER : return "The imported status is older than the database status" ; case Change . TYPE_IMPORTED_STATUS_NEWER : return "The imported status is newer than the database status" ; case Change . TYPE_LANGUAGE_ADDITION : return "The language \"" + change . getLanguage ( ) + "\" does not exist in the database" ; case Change . TYPE_MASTER_LANGUAGE_ADDITION : return "The master language \"" + change . getMasterLanguage ( ) + "\" does not exist in the database" ; case Change . TYPE_VALUE_CHANGED : if ( change . isConflicting ( ) ) { return "The value and the status are conflicting" ; } return "The value has changed" ; case Change . TYPE_VALUE_AND_STATUS_CHANGED : if ( change . isConflicting ( ) ) { return "The value and the status are conflicting" ; } return "The value and the status have changed" ; case Change . TYPE_KEY_ADDITION : return "The key does not exist in the database" ; default : return "Unknown change" ; } }
Gets a human readable description for a given change.
@param change the change
@return a human readable description for the given change.