KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > core > metadata > PermissionDescriptionMetaData


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.core.metadata;
10
11 import java.util.Set JavaDoc;
12
13 /**
14  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
15  * @version $Revision: 1.1 $
16  */

17 public class PermissionDescriptionMetaData
18 {
19
20    private String JavaDoc name;
21    private String JavaDoc description;
22    private Set JavaDoc impliedSet;
23    
24    public PermissionDescriptionMetaData(String JavaDoc name)
25    {
26       this.name = name;
27    }
28    
29    public String JavaDoc getName()
30    {
31       return name;
32    }
33    
34    public String JavaDoc getDescription()
35    {
36       return description;
37    }
38    
39    public void setDescription(String JavaDoc description)
40    {
41       this.description = description;
42    }
43    
44    public Set JavaDoc getImpliedSet()
45    {
46       return impliedSet;
47    }
48    
49    public void setImpliedSet(Set JavaDoc impliedSet)
50    {
51       this.impliedSet = impliedSet;
52    }
53    
54    public boolean equals(Object JavaDoc 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