@Entity public class CountrySubdivisionImpl extends Object implements CountrySubdivision, AdminMainEntity
| Modifier and Type | Field and Description |
|---|---|
protected String |
abbreviation |
protected String |
alternateAbbreviation |
protected CountrySubdivisionCategory |
category |
protected Country |
country |
protected String |
name |
MAIN_ENTITY_NAME_PROPERTY| Constructor and Description |
|---|
CountrySubdivisionImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAbbreviation()
The primary key - Ideally, implementations should use the ISO 3166-2 code of the country subdivision.
|
String |
getAlternateAbbreviation()
More friendly abbreviation that can be used for display purposes
e.g.
|
CountrySubdivisionCategory |
getCategory()
A category that represents the subdivision of this Country.
|
Country |
getCountry()
The country where this subdivision resides
e.g.
|
String |
getMainEntityName() |
String |
getName()
Full name for display purposes
e.g.
|
void |
setAbbreviation(String abbreviation)
Sets the primary key abbreviation
|
void |
setAlternateAbbreviation(String alternateAbbreviation)
sets the alternate abbreviation
|
void |
setCategory(CountrySubdivisionCategory category)
sets the country subdivision category
|
void |
setCountry(Country country)
sets the country in which this subdivision resides
|
void |
setName(String name)
sets the name
|
protected String abbreviation
protected String name
protected String alternateAbbreviation
protected Country country
protected CountrySubdivisionCategory category
public String getAbbreviation()
CountrySubdivisionhttp://en.wikipedia.org/wiki/ISO_3166-2getAbbreviation in interface CountrySubdivisionpublic void setAbbreviation(String abbreviation)
CountrySubdivisionsetAbbreviation in interface CountrySubdivisionabbreviation - - e.g. "US-TX" or "GB-WSM"public String getAlternateAbbreviation()
CountrySubdivisiongetAlternateAbbreviation in interface CountrySubdivisionpublic void setAlternateAbbreviation(String alternateAbbreviation)
CountrySubdivisionsetAlternateAbbreviation in interface CountrySubdivisionalternateAbbreviation - - e.g. "TX", "CA", "NY"public String getName()
CountrySubdivisiongetName in interface CountrySubdivisionpublic void setName(String name)
CountrySubdivisionsetName in interface CountrySubdivisionname - - e.g. "Texas", "California", "New York"public Country getCountry()
CountrySubdivisiongetCountry in interface CountrySubdivisionpublic void setCountry(Country country)
CountrySubdivisionsetCountry in interface CountrySubdivisioncountry - - e.g. "US", "GB"public CountrySubdivisionCategory getCategory()
CountrySubdivisiongetCategory in interface CountrySubdivisionpublic void setCategory(CountrySubdivisionCategory category)
CountrySubdivisionsetCategory in interface CountrySubdivisioncategory - - e.g. "State", "Province", "District"public String getMainEntityName()
getMainEntityName in interface AdminMainEntityCopyright © 2020. All rights reserved.