public class DefaultNameSpace extends Object implements NameSpace, Serializable
DefaultNameSpace
can be instantiated by any of the following methods:
NameSpace
and CharSequence
arguments given to the constructor are also immutable. Subclasses shall make sure that any overridden methods
remain safe to call from multiple threads and do not change any public NameSpace
state.Defined in the sis-utility
module
Modifier and Type | Field and Description |
---|---|
static char |
DEFAULT_SEPARATOR
The default separator, which is
':' . |
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
':'
. The separator is inserted between
the namespace and any generic name in that namespace.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–2014 The Apache Software Foundation. All rights reserved.