|
Betty v1.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchristophedelory.betty.xml.Child
christophedelory.betty.xml.IdDetails
christophedelory.betty.xml.CountryDetails
public class CountryDetails
The base representation of an XML object owning both an identifier and a country definition.
DbCountryEntity
,
Serialized FormConstructor Summary | |
---|---|
CountryDetails()
|
Method Summary | |
---|---|
String |
getCountry()
Returns the 2-letter country code identifier defined in ISO 3166. |
Boolean |
getCountryBoolean()
Specifies if this object is also a country or not. |
boolean |
isCountry()
Specifies if this object is also a country or not. |
void |
setCountry(String country)
Initializes the 2-letter country code identifier defined in ISO 3166. |
void |
setCountryBoolean(Boolean isCountry)
Specifies if this object is also a country or not. |
void |
setIsCountry(boolean isCountry)
Specifies if this object is also a country or not. |
Methods inherited from class christophedelory.betty.xml.IdDetails |
---|
accept, addDescription, addLink, findDescriptionByLocale, findLinkByLocale, getDescriptions, getId, getLinks, setId |
Methods inherited from class christophedelory.betty.xml.Child |
---|
getParent, getRoot, getRoot, getVersion, setParent, setVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CountryDetails()
Method Detail |
---|
public void setCountry(String country)
country
- the country code. May be null
.getCountry()
public String getCountry()
null
.
NullPointerException
- if the object's identifier is not defined.setCountry(String)
public void setCountryBoolean(Boolean isCountry)
isCountry
- Boolean.TRUE
if this object refers to a country, Boolean.FALSE
otherwise. May be null
.getCountryBoolean()
,
setIsCountry(boolean)
public Boolean getCountryBoolean()
Boolean.TRUE
if this object refers to a country, Boolean.FALSE
otherwise. May be null
.setCountryBoolean(Boolean)
,
isCountry()
public void setIsCountry(boolean isCountry)
isCountry
- true
if this object refers to a country, false
otherwise.isCountry()
,
setCountryBoolean(Boolean)
public boolean isCountry()
true
if this object refers to a country, false
otherwise.setIsCountry(boolean)
,
getCountryBoolean()
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |