1 16 17 package org.apache.jetspeed.om.registry.base; 18 19 import org.apache.jetspeed.om.registry.*; 20 21 29 public class BaseMetaInfo implements MetaInfo, java.io.Serializable 30 { 31 private String title; 32 33 private String description; 34 35 private String image; 36 37 public BaseMetaInfo() 38 {} 39 40 public BaseMetaInfo(String title, String description, String image) 41 { 42 this.title = title; 43 this.description = description; 44 this.image = image; 45 } 46 47 51 public boolean equals(Object object) 52 { 53 if (object==null) 54 { 55 return false; 56 } 57 58 BaseMetaInfo obj = (BaseMetaInfo)object; 59 60 if (title!=null) 61 { 62 if (!title.equals(obj.getTitle())) 63 { 64 return false; 65 } 66 } 67 else 68 { 69 if (obj.getTitle()!=null) 70 { 71 return false; 72 } 73 } 74 75 if (description!=null) 76 { 77 if(!description.equals(obj.getDescription())) 78 { 79 return false; 80 } 81 } 82 else 83 { 84 if (obj.getDescription()!=null) 85 { 86 return false; 87 } 88 } 89 90 if (image!=null) 91 { 92 if(!image.equals(obj.getImage())) 93 { 94 return false; 95 } 96 } 97 else 98 { 99 if (obj.getImage()!=null) 100 { 101 return false; 102 } 103 } 104 105 return true; 106 } 107 108 109 public String getTitle() 110 { 111 return this.title; 112 } 113 114 117 public void setTitle( String title ) 118 { 119 this.title = title; 120 } 121 122 123 public String getDescription() 124 { 125 return this.description; 126 } 127 128 131 public void setDescription( String description ) 132 { 133 this.description = description; 134 } 135 136 137 public String getImage() 138 { 139 return this.image; 140 } 141 142 145 public void setImage( String image ) 146 { 147 this.image = image; 148 } 149 150 } 151 | Popular Tags |