|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectDefaultNameSpace
@Immutable public class DefaultNameSpace
A domain in which names given by character strings are defined. This implementation does not support localization in order to avoid ambiguity when testing two namespaces for equality.
DefaultNameSpace can be instantiated by any of the following methods:
DefaultNameFactory#createNameSpace(GenericName)DefaultNameFactory.createNameSpace(GenericName, Map)
| metadata/geotk-metadata (download) | View source code for this class |
| Field Summary | |
|---|---|
static char |
DEFAULT_SEPARATOR
The default separator, which is 58. |
| Constructor Summary | |
|---|---|
protected |
DefaultNameSpace(DefaultNameSpace parent,
CharSequence name,
String headSeparator,
String separator)
Creates a new namespace with the given separator. |
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Returns true if this namespace is equal to the given object. |
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 |
|---|
public static final char DEFAULT_SEPARATOR
| Constructor Detail |
|---|
protected DefaultNameSpace(DefaultNameSpace parent,
CharSequence name,
String headSeparator,
String separator)
parent - The parent namespace, or null if none.name - The name of the new namespace, usually as a String
or an InternationalString.headSeparator - The separator to insert between the namespace and the
head of any name in that namespace.separator - The separator to insert between the parsed names of any name in that namespace.| Method Detail |
|---|
public boolean isGlobal()
isGlobal in interface NameSpacetrue if this namespace is the global namespace.public GenericName name()
name.scope().isGlobal() == true
name in interface NameSpacepublic String toString()
toString in class Objectpublic boolean equals(Object object)
true if this namespace is equal to the given object.
equals in class Objectobject - The object to compare with this namespace.
true if the given object is equal 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 | |||||||||