|
||||||||||
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 alternate name id. |
GisFeature |
getGisFeature()
The GisFeature, the Alternate name 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 alternate name is the preferred name for The GisFeature |
boolean |
isShortName()
Whether the alternate name is a short name |
void |
setAlternateNameId(java.lang.Integer alternateNameId)
Set the alternateName id |
void |
setGisFeature(GisFeature gisFeature)
Set the gisFeature, the alternate name refers to |
void |
setId(java.lang.Long id)
Set the datastore id. |
void |
setLanguage(java.lang.String language)
Set the the iso 639 alpha2 or alpha 3 languageCode for the current alternate name |
void |
setName(java.lang.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 |
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 alternate namesource
- what is the source the alternate nameAlternateNameSource
public 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 alternate name refers topublic AlternateNameSource getSource()
AlternateNameSource
public void setSource(AlternateNameSource source)
public java.lang.Integer getAlternateNameId()
public void setAlternateNameId(java.lang.Integer alternateNameId)
alternateNameId
- The id to setpublic boolean isPreferredName()
GisFeature
GisFeature
public void setPreferredName(boolean isPreferredName)
isPreferredName
- The preferred name propertypublic boolean isShortName()
public void setShortName(boolean isShortName)
isShortName
- The short name propertypublic java.lang.String getLanguage()
AlternateName
public void setLanguage(java.lang.String language)
language
- The language to set, it will be automaticaly upercasedpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public 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 |