1 package org.roller.pojos; 2 7 public class EntryAttributeData extends PersistentObject implements java.lang.Comparable 8 { 9 protected String id; 10 protected WeblogEntryData entry; 11 protected String name; 12 protected String value; 13 14 public EntryAttributeData() 15 { 16 } 17 18 public EntryAttributeData( 19 String id, 20 WeblogEntryData entry, 21 String name, 22 String value) 23 { 24 this.id = id; 25 this.entry = entry; 26 this.name = name; 27 this.value = value; 28 } 29 30 public EntryAttributeData(EntryAttributeData otherData) 31 { 32 this.id = otherData.id; 33 this.entry = otherData.entry; 34 this.name = otherData.name; 35 this.value = otherData.value; 36 } 37 38 43 public java.lang.String getId() 44 { 45 return this.id; 46 } 47 48 public void setId(java.lang.String id) 49 { 50 this.id = id; 51 } 52 53 56 public void setData(org.roller.pojos.PersistentObject otherData) 57 { 58 this.id = otherData.getId(); 59 this.entry = ((EntryAttributeData) otherData).entry; 60 this.name = ((EntryAttributeData) otherData).name; 61 this.value = ((EntryAttributeData) otherData).value; 62 } 63 64 68 public WeblogEntryData getEntry() 69 { 70 return entry; 71 } 72 73 public void setEntry(WeblogEntryData entry) 74 { 75 this.entry = entry; 76 } 77 78 82 public String getName() 83 { 84 return name; 85 } 86 87 public void setName(String name) 88 { 89 this.name = name; 90 } 91 92 96 public String getValue() 97 { 98 return value; 99 } 100 101 public void setValue(String value) 102 { 103 this.value = value; 104 } 105 106 public int compareTo(Object o) { 107 EntryAttributeData att = (EntryAttributeData)o; 108 return getName().compareTo(att.getName()); 109 } 110 } 111 | Popular Tags |