1 18 package org.apache.roller.pojos; 19 25 public class EntryAttributeData extends PersistentObject implements java.lang.Comparable 26 { 27 private String id; 28 private WeblogEntryData entry; 29 private String name; 30 private String value; 31 32 public EntryAttributeData() 33 { 34 } 35 36 public EntryAttributeData( 37 String id, 38 WeblogEntryData entry, 39 String name, 40 String value) 41 { 42 this.id = id; 43 this.entry = entry; 44 this.name = name; 45 this.value = value; 46 } 47 48 public EntryAttributeData(EntryAttributeData otherData) 49 { 50 setData(otherData); 51 } 52 53 59 public java.lang.String getId() 60 { 61 return this.id; 62 } 63 64 public void setId(java.lang.String id) 65 { 66 this.id = id; 67 } 68 69 72 public void setData(org.apache.roller.pojos.PersistentObject otherData) 73 { 74 this.id = otherData.getId(); 75 this.entry = ((EntryAttributeData) otherData).getEntry(); 76 this.name = ((EntryAttributeData) otherData).getName(); 77 this.value = ((EntryAttributeData) otherData).getValue(); 78 } 79 80 85 public WeblogEntryData getEntry() 86 { 87 return entry; 88 } 89 90 public void setEntry(WeblogEntryData entry) 91 { 92 this.entry = entry; 93 } 94 95 100 public String getName() 101 { 102 return name; 103 } 104 105 public void setName(String name) 106 { 107 this.name = name; 108 } 109 110 115 public String getValue() 116 { 117 return value; 118 } 119 120 public void setValue(String value) 121 { 122 this.value = value; 123 } 124 125 public int compareTo(Object o) { 126 EntryAttributeData att = (EntryAttributeData)o; 127 return getName().compareTo(att.getName()); 128 } 129 } 130 | Popular Tags |