|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gisgraphy.domain.geoloc.entity.AlternateName
public class AlternateName
Represents an Alternate Name of a feature
| Constructor Summary | |
|---|---|
AlternateName()
Default constructor (Needed by CGLib) |
|
AlternateName(String name,
AlternateNameSource source)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AlternateName(String name,
AlternateNameSource source)
name - The name of the alternate namesource - what is the source the alternate nameAlternateNameSourcepublic AlternateName()
| Method Detail |
|---|
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()
GisFeature
GisFeaturepublic 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 upercasedpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||