@Immutable public class DefaultNameSpace extends Object implements NameSpace, Serializable
DefaultNameSpace
can be instantiated by any of the following methods:
Defined in the sis-utility module
Modifier and Type | Field and Description |
---|---|
static char |
DEFAULT_SEPARATOR
The default separator, which is 58.
|
Modifier | Constructor and Description |
---|---|
protected |
DefaultNameSpace(DefaultNameSpace parent,
CharSequence name,
String headSeparator,
String separator)
Creates a new namespace with the given separator.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final char DEFAULT_SEPARATOR
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.public boolean isGlobal()
public GenericName name()
assert name.scope().isGlobal() == true;
public boolean equals(Object object)
true
if this namespace is equal to the given object.Copyright © 2010–2013 The Apache Software Foundation. All rights reserved.