Betty v1.1.0

christophedelory.betty.xml
Class CountryDetails

java.lang.Object
  extended by christophedelory.betty.xml.Child
      extended by christophedelory.betty.xml.IdDetails
          extended by christophedelory.betty.xml.CountryDetails
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LocationDetails, PlayerDetails

public class CountryDetails
extends IdDetails

The base representation of an XML object owning both an identifier and a country definition.

Version:
$Revision$
Author:
Christophe Delory
See Also:
DbCountryEntity, Serialized Form

Constructor 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

CountryDetails

public CountryDetails()
Method Detail

setCountry

public void setCountry(String country)
Initializes the 2-letter country code identifier defined in ISO 3166.

Parameters:
country - the country code. May be null.
See Also:
getCountry()

getCountry

public String getCountry()
Returns the 2-letter country code identifier defined in ISO 3166.

Returns:
the country code. May be null.
Throws:
NullPointerException - if the object's identifier is not defined.
See Also:
setCountry(String)

setCountryBoolean

public void setCountryBoolean(Boolean isCountry)
Specifies if this object is also a country or not.

Parameters:
isCountry - Boolean.TRUE if this object refers to a country, Boolean.FALSE otherwise. May be null.
See Also:
getCountryBoolean(), setIsCountry(boolean)

getCountryBoolean

public Boolean getCountryBoolean()
Specifies if this object is also a country or not.

Returns:
Boolean.TRUE if this object refers to a country, Boolean.FALSE otherwise. May be null.
See Also:
setCountryBoolean(Boolean), isCountry()

setIsCountry

public void setIsCountry(boolean isCountry)
Specifies if this object is also a country or not.

Parameters:
isCountry - true if this object refers to a country, false otherwise.
See Also:
isCountry(), setCountryBoolean(Boolean)

isCountry

public boolean isCountry()
Specifies if this object is also a country or not.

Returns:
true if this object refers to a country, false otherwise.
See Also:
setIsCountry(boolean), getCountryBoolean()

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.