1 9 package org.jboss.portal.core.metadata; 10 11 import java.util.Set ; 12 13 17 public class PermissionDescriptionMetaData 18 { 19 20 private String name; 21 private String description; 22 private Set impliedSet; 23 24 public PermissionDescriptionMetaData(String name) 25 { 26 this.name = name; 27 } 28 29 public String getName() 30 { 31 return name; 32 } 33 34 public String getDescription() 35 { 36 return description; 37 } 38 39 public void setDescription(String description) 40 { 41 this.description = description; 42 } 43 44 public Set getImpliedSet() 45 { 46 return impliedSet; 47 } 48 49 public void setImpliedSet(Set impliedSet) 50 { 51 this.impliedSet = impliedSet; 52 } 53 54 public boolean equals(Object obj) 55 { 56 if (obj == this) 57 { 58 return true; 59 } 60 if (obj instanceof PermissionDescriptionMetaData) 61 { 62 PermissionDescriptionMetaData other = (PermissionDescriptionMetaData)obj; 63 return name.equals(other.name); 64 } 65 return false; 66 } 67 68 public int hashCode() 69 { 70 return name.hashCode(); 71 } 72 } 73 | Popular Tags |