1 55 package org.lateralnz.common.model; 56 57 import java.io.Serializable ; 58 59 import org.lateralnz.common.util.Constants; 60 61 66 public class MutableCodeValue implements Constants, Serializable { 67 private String code; 68 private Object value; 69 70 public MutableCodeValue() { 71 this(EMPTY, EMPTY); 72 } 73 74 public MutableCodeValue(String code, Object value) { 75 setCode(code); 76 setValue(value); 77 } 78 79 public void setCode(String code) { 80 this.code = code; 81 } 82 83 public void setName(String name) { 84 this.code = name; 85 } 86 87 public void setValue(Object value) { 88 this.value = value; 89 } 90 91 public String getCode() { 92 return code; 93 } 94 95 public String getName() { 96 return code; 97 } 98 99 public Object getValue() { 100 return value; 101 } 102 103 public String toString() { 104 return getCode() + EQUALS + getValue(); 105 } 106 } | Popular Tags |