public class AdminResourceNamespace
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AdminResourceNamespace.LeafNode
Represents the leaf nodes in the namespace tree.
|
static class |
AdminResourceNamespace.Node
Represents nodes in the namespace tree.
|
Modifier and Type | Field and Description |
---|---|
private static AdminResourceNamespace.Node |
root
The following tree represents the namespace of the admin resource.
|
Constructor and Description |
---|
AdminResourceNamespace() |
Modifier and Type | Method and Description |
---|---|
static AdminResourceNamespace.Node[] |
findPath(java.lang.String name)
Finds a matching namespace tree node path for the given name.
|
private static java.lang.String[] |
splitName(java.lang.String name)
Splits a resource instance name into components.
|
private static final AdminResourceNamespace.Node root
public static AdminResourceNamespace.Node[] findPath(java.lang.String name)
name
- resource instance name, should always start with "/"null
private static java.lang.String[] splitName(java.lang.String name)
name
- resource instance name, should always start with "/"null
for a bad name;
"" is returned for the root name "/";
"", "accounts", "users" is returned for "/accounts/users"
"", "accounts", "users", "" is returned for "/accounts/users/"