001package csheets.ext.database.core; 002 003/** 004 * The observer messages for the merge errors 005 * 006 * @author Andre 007 * 008 */ 009public class ObserverMessages { 010 /** the database value */ 011 private final String databaseValue; 012 /** the application value */ 013 private final String applicationValue; 014 /** the decision value */ 015 private int decision; 016 017 /** 018 * Creates a new observer message 019 * 020 * @param databaseValue 021 * the database value 022 * @param applicationValue 023 * the application value 024 */ 025 public ObserverMessages(String databaseValue, String applicationValue) { 026 this.databaseValue = databaseValue; 027 this.applicationValue = applicationValue; 028 this.decision = -1; 029 } 030 031 /** 032 * Get the application value 033 * 034 * @return the application value 035 */ 036 public String getApplicationValue() { 037 return applicationValue; 038 } 039 040 /** 041 * Get the database value 042 * 043 * @return the database value 044 */ 045 public String getDatabaseValue() { 046 return databaseValue; 047 } 048 049 /** 050 * Get the decision value 051 * 052 * @return the decision value 053 */ 054 public int getDecision() { 055 return decision; 056 } 057 058 /** 059 * Set the decision value 060 * 061 * @param decision 062 * the decision value 063 */ 064 public void setDecision(int decision) { 065 this.decision = decision; 066 } 067 068}