1 90 package com.ivata.groupware.navigation.menu; 91 92 93 import java.util.Set ; 94 95 import com.ivata.groupware.container.persistence.BaseDO; 96 97 98 119 public class MenuDO extends BaseDO { 120 121 124 private Set items; 125 129 private Integer priority; 130 133 private String text; 134 135 144 public boolean equals(final Object compare) { 145 if ((compare == null) || 147 !(this.getClass().isInstance(compare))) { 148 return false; 149 } 150 MenuDO menuDO = (MenuDO) compare; 151 Integer id = getId(); 152 Integer menuDOId = menuDO.getId(); 153 154 return (((id == null) ? 156 (menuDOId == null) : 157 id.equals(menuDOId))); 158 } 159 172 public final Set getItems() { 173 return items; 174 } 175 184 public final Integer getPriority() { 185 return priority; 186 } 187 188 194 public final String getText() { 195 return text; 196 } 197 198 204 public final void setItems(final Set items) { 205 this.items = items; 206 } 207 215 public final void setPriority(final Integer priority) { 216 this.priority = priority; 217 } 218 219 224 public final void setText(final String text) { 225 this.text = text; 226 } 227 228 } 229 | Popular Tags |