|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectSimpleNameSpace
public class SimpleNameSpace
A NameSpace defining the scope of SimpleName instances.
| Field Summary | |
|---|---|
protected SimpleNameFactory |
factory
The factory to use for creating name instances in this namespace. |
| Constructor Summary | |
|---|---|
SimpleNameSpace(SimpleNameSpace parent,
Name name)
Creates a new instance for the given parent namespace and name. |
|
SimpleNameSpace(SimpleNameSpace parent,
String name)
Creates a new instance for the given parent namespace and name. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Compares the given object to this namespace for equality. |
int |
hashCode()
Returns a hash code value for this namespace. |
boolean |
isGlobal()
Indicates whether this namespace is a "top level" namespace. |
GenericName |
name()
Represents the identifier of this namespace. |
String |
toString()
Returns a string representation of this namespace. |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final SimpleNameFactory factory
| Constructor Detail |
|---|
public SimpleNameSpace(SimpleNameSpace parent,
String name)
throws InvalidNameException
parent is null in
which case the default factory will be used.
parent - The parent of the new namespace, or null if none.name - The identifier of this namespace.
InvalidNameException - If the given name violates the JNDI
syntax.
public SimpleNameSpace(SimpleNameSpace parent,
Name name)
throws InvalidNameException
parent is null in
which case the default factory will be used.
parent - The parent of the new namespace, or null if none.name - The identifier of this namespace.
InvalidNameException - If the given name violates the JNDI
syntax.| Method Detail |
|---|
public boolean isGlobal()
isGlobal in interface NameSpacetrue if this namespace has no parent.public GenericName name()
name.scope().isGlobal() == true
name in interface NameSpacepublic String toString()
toString in class Objectpublic boolean equals(Object other)
equals in class Objectother - The other object to compare to this namespace.public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||