org.jboss.test
Class PermissionName
java.lang.Object
org.jboss.test.PermissionName
- All Implemented Interfaces:
- Serializable, Comparable
public class PermissionName
- extends Object
- implements Comparable, Serializable
A javax.naming.Name based key class used as the name attribute
by NamespacePermissions.
- Version:
- $Revision: 1.4.6.3 $
- Author:
- Scott.Stark@jboss.org
- See Also:
- Serialized Form
Nested Class Summary |
static class |
PermissionName.NameLengthComparator
An alternate PermissionName comparator that first orders names by
length(longer names before shorter names) to ensure that the most
precise names are seen first. |
PermissionName
public PermissionName(String name)
throws IllegalArgumentException
- Creates new NamespacePermission
- Throws:
IllegalArgumentException
PermissionName
public PermissionName(Name name)
compareTo
public int compareTo(Object obj)
- Specified by:
compareTo
in interface Comparable
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
size
public int size()
isParent
public boolean isParent(PermissionName childName)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.