org.apache.avalon.meta.info
Class PermissionDescriptor

java.lang.Object
  extended byorg.apache.avalon.meta.info.PermissionDescriptor
All Implemented Interfaces:
Serializable

public final class PermissionDescriptor
extends Object
implements Serializable

A descriptor that describes a value that must be placed in components Context. It contains information about;

Version:
$Revision: 1.5 $ $Date: 2004/03/17 10:50:03 $
Author:
Avalon Development Team
See Also:
Serialized Form

Constructor Summary
PermissionDescriptor(String classname, String name, String[] actions)
          Construct a new PermissionDescriptor
 
Method Summary
 boolean equals(Object other)
          Test is the supplied object is equal to this object.
 String[] getActions()
          Return the set of actions associated with the permission.
 String getClassname()
          Return the classname of the permission.
 String getName()
          Return the permission name.
 int hashCode()
          Return the hashcode for the object.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermissionDescriptor

public PermissionDescriptor(String classname,
                            String name,
                            String[] actions)
Construct a new PermissionDescriptor

Parameters:
classname - the permission class name
name - the permission name
actions - the permission actions
Method Detail

getClassname

public String getClassname()
Return the classname of the permission.

Returns:
the classname

getName

public String getName()
Return the permission name. The value returned is relative to the permission class. If no permission name is declared a null value will be returned.

Returns:
the name

getActions

public String[] getActions()
Return the set of actions associated with the permission.

Returns:
a string array representing the actions assigned to this permission

equals

public boolean equals(Object other)
Test is the supplied object is equal to this object.

Parameters:
other - the object to compare with this instance
Returns:
true if the object are equivalent

hashCode

public int hashCode()
Return the hashcode for the object.

Returns:
the hashcode value

toString

public String toString()


Copyright © The Apache Software Foundation. All Rights Reserved.