|
||||||||||
| 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(java.lang.String name,
AlternateNameSource source)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Integer |
getAlternateNameId()
Returns the alternateNameId. |
GisFeature |
getGisFeature()
The GisFeature, the AlternateName refers To |
java.lang.Long |
getId()
The datastore id |
java.lang.String |
getLanguage()
|
java.lang.String |
getName()
|
AlternateNameSource |
getSource()
It tells from which files / gazetteers it has been imported |
int |
hashCode()
|
boolean |
isPreferredName()
Whether the AlternateName is the preferred name for The GisFeature |
boolean |
isShortName()
Whether the AlternateName is a short name for The GisFeature |
void |
setAlternateNameId(java.lang.Integer alternateNameId)
Set the AlternateNameId |
void |
setGisFeature(GisFeature gisFeature)
Set The GisFeature, the AlternateName refers To |
void |
setId(java.lang.Long id)
Set the datastore id. |
void |
setLanguage(java.lang.String language)
Set the the iso639 Alpha2 or alpha 3 LanguageCode for the current AlternateName |
void |
setName(java.lang.String name)
Set the name of the current AlternateName |
void |
setPreferredName(boolean isPreferredName)
Set the AlternateName as a preferred name or Not |
void |
setShortName(boolean isShortName)
Set the AlternateName as a short name or Not |
void |
setSource(AlternateNameSource source)
Set the source from which the AlternateName come From |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AlternateName(java.lang.String name,
AlternateNameSource source)
name - The name of the alternateNamesource - From which source the alternateName come Frompublic AlternateName()
| Method Detail |
|---|
public java.lang.Long getId()
public void setId(java.lang.Long id)
id - The datastore idpublic java.lang.String getName()
public void setName(java.lang.String name)
name - The name to setpublic GisFeature getGisFeature()
public void setGisFeature(GisFeature gisFeature)
gisFeature - The GisFeature, the AlternateName refers Topublic AlternateNameSource getSource()
AlternateNameSourcepublic void setSource(AlternateNameSource source)
public java.lang.Integer getAlternateNameId()
public void setAlternateNameId(java.lang.Integer alternateNameId)
alternateNameId - The AlternateNameId to setpublic boolean isPreferredName()
GisFeature
GisFeaturepublic void setPreferredName(boolean isPreferredName)
isPreferredName - The preferred Name propertypublic boolean isShortName()
GisFeature
GisFeaturepublic void setShortName(boolean isShortName)
isShortName - The short Name propertypublic java.lang.String getLanguage()
AlternateNamepublic void setLanguage(java.lang.String language)
language - the language to set, it will be automaticaly upercasedpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||