1 18 23 24 package org.apache.roller.pojos; 25 26 27 36 public class RollerPropertyData 37 extends org.apache.roller.pojos.PersistentObject 38 implements java.io.Serializable 39 { 40 41 static final long serialVersionUID = 6913562779484028899L; 42 43 44 47 private String name; 48 49 52 private String value; 53 54 55 public RollerPropertyData() {} 56 57 58 public RollerPropertyData(String name, String value) { 59 this.name = name; 60 this.value = value; 61 } 62 63 64 public void setData(PersistentObject object) 65 { 66 if (object instanceof RollerPropertyData) 67 { 68 RollerPropertyData prop = (RollerPropertyData) object; 69 this.name = prop.getName(); 70 this.value = prop.getValue(); 71 } 72 } 73 74 75 public String toString() 76 { 77 return (this.name + "=" + this.value); 78 } 79 80 81 88 public String getName() { 89 90 return this.name; 91 } 92 93 99 public void setName(String name) { 100 101 this.name = name; 102 } 103 104 111 public String getValue() { 112 113 return this.value; 114 } 115 116 122 public void setValue(String value) { 123 124 this.value = value; 125 } 126 127 128 public String getId() { 129 return null; 131 } 132 133 134 public void setId(String id) { 135 } 137 } 138 | Popular Tags |