GeoAPI 2.0
Build 2005-06-08

org.opengis.util
Interface NameFactory


public interface NameFactory

Factory for generic names and international strings.

Since:
GeoAPI 2.0

Method Summary
 InternationalString createInternationalString(Map<Locale,String> strings)
          Creates an international string from a set of strings in different locales.
 LocalName createLocalName(GenericName scope, String name, InternationalString localizedName)
          Creates a local name from a scope and a name.
 ScopedName createScopedName(GenericName scope, String name, InternationalString localizedName)
          Creates a scoped name from a scope and a name.
 

Method Detail

createInternationalString

InternationalString createInternationalString(Map<Locale,String> strings)
Creates an international string from a set of strings in different locales.

Parameters:
strings - String value for each locale key.

createLocalName

LocalName createLocalName(GenericName scope,
                          String name,
                          InternationalString localizedName)
Creates a local name from a scope and a name. This method creates a name similar to the one created by createScopedName(…same parameters…), except that methods like getParsedNames() and toString() do not include the scope.

Parameters:
scope - The scope to be returned by LocalName.getScope(), or null if none.
name - The unlocalized name.
localizedName - A localized version of the name.

createScopedName

ScopedName createScopedName(GenericName scope,
                            String name,
                            InternationalString localizedName)
Creates a scoped name from a scope and a name. This method creates a name similar to the one created by createLocalName(…same parameters…), except that methods like getParsedNames() and toString() include the scope.

Parameters:
scope - The scope to be returned by ScopedName.getScope().
name - The unlocalized name.
localizedName - A localized version of the name.

GeoAPI 2.0
Build 2005-06-08

Symbols, terms and definitions
Copyright OpenGIS® Consortium