org.jboss.test
Class PermissionName
java.lang.Object
org.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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PermissionName
public PermissionName(java.lang.String name)
throws java.lang.IllegalArgumentException
- Creates new NamespacePermission
PermissionName
public PermissionName(javax.naming.Name name)
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()