@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()
CountrySubdivision
http://en.wikipedia.org/wiki/ISO_3166-2
getAbbreviation
in interface CountrySubdivision
public void setAbbreviation(String abbreviation)
CountrySubdivision
setAbbreviation
in interface CountrySubdivision
abbreviation
- - e.g. "US-TX" or "GB-WSM"public String getAlternateAbbreviation()
CountrySubdivision
getAlternateAbbreviation
in interface CountrySubdivision
public void setAlternateAbbreviation(String alternateAbbreviation)
CountrySubdivision
setAlternateAbbreviation
in interface CountrySubdivision
alternateAbbreviation
- - e.g. "TX", "CA", "NY"public String getName()
CountrySubdivision
getName
in interface CountrySubdivision
public void setName(String name)
CountrySubdivision
setName
in interface CountrySubdivision
name
- - e.g. "Texas", "California", "New York"public Country getCountry()
CountrySubdivision
getCountry
in interface CountrySubdivision
public void setCountry(Country country)
CountrySubdivision
setCountry
in interface CountrySubdivision
country
- - e.g. "US", "GB"public CountrySubdivisionCategory getCategory()
CountrySubdivision
getCategory
in interface CountrySubdivision
public void setCategory(CountrySubdivisionCategory category)
CountrySubdivision
setCategory
in interface CountrySubdivision
category
- - e.g. "State", "Province", "District"public String getMainEntityName()
getMainEntityName
in interface AdminMainEntity
Copyright © 2020. All rights reserved.