1 19 20 package org.efs.openreports.objects; 21 22 import java.io.Serializable ; 23 24 public class ReportParameterValue implements Serializable 25 { 26 private static final long serialVersionUID = -8424867174729600464L; 27 28 private Object id; 29 private String description; 30 31 public ReportParameterValue() {} 32 33 public ReportParameterValue(Object value) 34 { 35 this.id = value; 36 } 37 38 public ReportParameterValue(Object id, String description) 39 { 40 this.id = id; 41 this.description = description; 42 } 43 44 public String getDescription() 45 { 46 if (description == null) return id.toString(); 47 return description; 48 } 49 50 public void setDescription(String description) 51 { 52 this.description = description; 53 } 54 55 public Object getId() 56 { 57 return id; 58 } 59 60 public void setId(Object id) 61 { 62 this.id = id; 63 } 64 65 } | Popular Tags |