org.jboss.test
Class PermissionName

java.lang.Object
  extended by 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.
 
Constructor Summary
PermissionName(Name name)
           
PermissionName(String name)
          Creates new NamespacePermission
 
Method Summary
 int compareTo(Object obj)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isParent(PermissionName childName)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermissionName

public PermissionName(String name)
               throws IllegalArgumentException
Creates new NamespacePermission

Throws:
IllegalArgumentException

PermissionName

public PermissionName(Name name)
Method Detail

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.