org.jboss.test
Class PermissionName

java.lang.Object
  extended byorg.jboss.test.PermissionName
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class PermissionName
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

A javax.naming.Name based key class used as the name attribute by NamespacePermissions.

See Also:
Serialized Form

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

Constructor Detail

PermissionName

public PermissionName(java.lang.String name)
               throws java.lang.IllegalArgumentException
Creates new NamespacePermission


PermissionName

public PermissionName(javax.naming.Name name)
Method Detail

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()

size

public int size()

isParent

public boolean isParent(PermissionName (src)  childName)

toString

public java.lang.String toString()