public class AlternateName extends Object
| Constructor and Description |
|---|
AlternateName()
Default constructor (Needed by CGLib)
|
AlternateName(String name,
AlternateNameSource source) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Integer |
getAlternateNameId()
Returns the alternate name id.
|
GisFeature |
getGisFeature()
The GisFeature, the Alternate name refers to
|
Long |
getId()
The datastore id
|
String |
getLanguage() |
String |
getName() |
AlternateNameSource |
getSource()
It tells from which files / gazetteers it has been imported
|
int |
hashCode() |
boolean |
isPreferredName()
Whether the alternate name is the preferred name for The
GisFeature |
boolean |
isShortName()
Whether the alternate name is a short name
|
void |
setAlternateNameId(Integer alternateNameId)
Set the alternateName id
|
void |
setGisFeature(GisFeature gisFeature)
Set the gisFeature, the alternate name refers to
|
void |
setId(Long id)
Set the datastore id.
|
void |
setLanguage(String language)
Set the the iso 639 alpha2 or alpha 3 languageCode for the current
alternate name
|
void |
setName(String name)
Set the name of the current alternate name
|
void |
setPreferredName(boolean isPreferredName)
Set the alternate name as a preferred name or Not
|
void |
setShortName(boolean isShortName)
Set the Alternate name as a short name or Not
|
void |
setSource(AlternateNameSource source)
Set the source from which the alternate name come from
|
String |
toString() |
public AlternateName(String name, AlternateNameSource source)
name - The name of the alternate namesource - what is the source the alternate nameAlternateNameSourcepublic AlternateName()
public Long getId()
public void setId(Long id)
id - The datastore idpublic String getName()
public void setName(String name)
name - The name to setpublic GisFeature getGisFeature()
public void setGisFeature(GisFeature gisFeature)
gisFeature - The GisFeature, the alternate name refers topublic AlternateNameSource getSource()
AlternateNameSourcepublic void setSource(AlternateNameSource source)
public Integer getAlternateNameId()
public void setAlternateNameId(Integer alternateNameId)
alternateNameId - The id to setpublic boolean isPreferredName()
GisFeatureGisFeaturepublic void setPreferredName(boolean isPreferredName)
isPreferredName - The preferred name propertypublic boolean isShortName()
public void setShortName(boolean isShortName)
isShortName - The short name propertypublic String getLanguage()
AlternateNamepublic void setLanguage(String language)
language - The language to set, it will be automaticaly upercasedCopyright © 2015. All rights reserved.