org.opengis.util
Interface NameSpace


@UML(identifier="NameSpace",
     specification=ISO_19103)
public interface NameSpace

A domain in which names given by character strings are defined.

Since:
GeoAPI 2.1
Author:
Bryce Nordgren (USDA), Martin Desruisseaux (IRD)

Method Summary
 Set<GenericName> getNames()
          Deprecated. Not implementable in a simple naming system. We may create a Register subclass (or something similar) later for this kind of job.
 boolean isGlobal()
          Indicates whether this namespace is a "top level" namespace.
 GenericName name()
          Represents the identifier of this namespace.
 

Method Detail

isGlobal

@UML(identifier="isGlobal",
     obligation=MANDATORY,
     specification=ISO_19103)
boolean isGlobal()
Indicates whether this namespace is a "top level" namespace. Global, or top-level namespaces are not contained within another namespace. There is no namespace called "global" or "root" which contains all of the top-level namespaces. Hence, this flag indicates whether the namespace has a parent.

Returns:
true if this namespace has no parent.

name

@UML(identifier="name",
     obligation=MANDATORY,
     specification=ISO_19103)
GenericName name()
Represents the identifier of this namespace. If the global attribute is true, indicating that this is a top level NameSpace, then the name should be a local name. If false, name should be a fully-qualified name where name.scope().isGlobal() == true.

Returns:
The identifier of this namespace.

getNames

@Deprecated
@UML(identifier="names",
     obligation=MANDATORY,
     specification=ISO_19103)
Set<GenericName> getNames()
Deprecated. Not implementable in a simple naming system. We may create a Register subclass (or something similar) later for this kind of job.

Returns the set of generic names registered with this namespace. Duplicate names are forbidden. The names may be either:

Returns:
All generic names registered with this namespace.


Copyright © 1996-2014 Geotools. All Rights Reserved.