public final class NameFactory extends Object
GenericName objects.| Modifier and Type | Method and Description |
|---|---|
static GenericName |
create(CharSequence[] names)
Constructs a generic name from an array of local names and the default separator character.
|
static GenericName |
create(CharSequence[] names,
char separator)
Constructs a generic name from an array of local names and the specified separator character.
|
static GenericName |
create(String name)
Constructs a generic name from a fully qualified name and the default separator character.
|
static GenericName |
create(String name,
char separator)
Constructs a generic name from a fully qualified name and the specified separator character.
|
static GenericName[] |
toArray(Object value)
Returns the specified name in an array.
|
public static GenericName create(String name)
name - The fully qualified name.public static GenericName create(String name, char separator)
name - The fully qualified name.separator - The separator character.public static GenericName create(CharSequence[] names)
InternationalString, then the
toString(null) method will be used
in order to fetch an unlocalized name. Otherwise, the
toString() method will be used.names - The local names as an array of strings or international strings. This array must
contains at least one element.public static GenericName create(CharSequence[] names, char separator)
InternationalString, then the
toString(null) method will be used
in order to fetch an unlocalized name. Otherwise, the
toString() method will be used.names - The local names as an array of strings. This array must contains at least one
element.separator - The separator character to use.public static GenericName[] toArray(Object value) throws ClassCastException
value may be either a String,
String[], GenericName or GenericName[]. This method is used in AbstractIdentifiedObject constructors.value - The object to cast into an array of generic names.ClassCastException - if value can't be cast.Copyright © 1996–2019 Geotools. All rights reserved.