org.geotoolkit.naming
Class DefaultNameSpace

Object
  extended by DefaultNameSpace
All Implemented Interfaces:
Serializable, NameSpace

Deprecated. Moved to the org.apache.sis.util.iso package.

@Deprecated
@Immutable
public class DefaultNameSpace
extends Object
implements NameSpace, Serializable

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:

Since:
3.00
Version:
3.00
Author:
Martin Desruisseaux (Geomatys)
See Also:
Serialized Form
Module:
metadata/geotk-metadata (download)    View source code for this class

Field Summary
static char DEFAULT_SEPARATOR
          Deprecated. The default separator, which is 58.
 
Constructor Summary
protected DefaultNameSpace(DefaultNameSpace parent, CharSequence name, String headSeparator, String separator)
          Deprecated. Creates a new namespace with the given separator.
 
Method Summary
 boolean equals(Object object)
          Deprecated. Returns true if this namespace is equal to the given object.
 int hashCode()
          Deprecated. Returns a hash code value for this namespace.
 boolean isGlobal()
          Deprecated. Indicates whether this namespace is a "top level" namespace.
 GenericName name()
          Deprecated. Represents the identifier of this namespace.
 String toString()
          Deprecated. Returns a string representation of this namespace.
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_SEPARATOR

public static final char DEFAULT_SEPARATOR
Deprecated. 
The default separator, which is 58. The separator is inserted between the namespace and any generic name in that namespace.

See Also:
Constant Field Values
Constructor Detail

DefaultNameSpace

protected DefaultNameSpace(DefaultNameSpace parent,
                           CharSequence name,
                           String headSeparator,
                           String separator)
Deprecated. 
Creates a new namespace with the given separator.

Parameters:
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

isGlobal

public boolean isGlobal()
Deprecated. 
Indicates whether this namespace is a "top level" namespace. Global, or top-level namespaces are not contained within another namespace. The global namespace has no parent.

Specified by:
isGlobal in interface NameSpace
Returns:
true if this namespace is the global namespace.

name

public GenericName name()
Deprecated. 
Represents the identifier of this namespace. Namespace identifiers shall be fully-qualified names where:
name.scope().isGlobal() == true

Specified by:
name in interface NameSpace
Returns:
The identifier of this namespace.

toString

public String toString()
Deprecated. 
Returns a string representation of this namespace.

Overrides:
toString in class Object
Returns:
A string representation of this namespace.

equals

public boolean equals(Object object)
Deprecated. 
Returns true if this namespace is equal to the given object.

Overrides:
equals in class Object
Parameters:
object - The object to compare with this namespace.
Returns:
true if the given object is equal to this namespace.

hashCode

public int hashCode()
Deprecated. 
Returns a hash code value for this namespace.

Overrides:
hashCode in class Object


Copyright © 2009-2013 Geotoolkit.org. All Rights Reserved.