1 16 17 package org.apache.jetspeed.om.registry.base; 18 19 import org.apache.jetspeed.om.registry.Category; 20 21 29 public class BaseCategory implements Category, java.io.Serializable 30 { 31 private String name; 32 private String group = "Jetspeed"; 33 34 38 public boolean equals(Object object) 39 { 40 if (object==null) 41 { 42 return false; 43 } 44 45 BaseCategory obj = (BaseCategory)object; 46 47 if (name!=null) 48 { 49 if (!name.equals(obj.getName())) 50 { 51 return false; 52 } 53 } 54 else 55 { 56 if (obj.getName()!=null) 57 { 58 return false; 59 } 60 } 61 62 if (group!=null) 63 { 64 if(!group.equals(obj.getGroup())) 65 { 66 return false; 67 } 68 } 69 else 70 { 71 if (obj.getGroup()!=null) 72 { 73 return false; 74 } 75 } 76 77 return true; 78 } 79 80 81 public String getName() 82 { 83 return name; 84 } 85 86 90 public void setName(String name) 91 { 92 this.name = name; 93 } 94 95 96 public String getGroup() 97 { 98 return group; 99 } 100 101 105 public void setGroup(String group) 106 { 107 this.group = group; 108 } 109 110 } | Popular Tags |