public class CountryInfo extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
CountryInfo.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<CountryInfo> |
CREATOR |
static JSONifiable.Creator<CountryInfo> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
CountryInfo()
Constructs a new empty instance.
|
protected |
CountryInfo(boolean noInit)
Constructs a new empty instance.
|
|
CountryInfo(CountryInfo src)
Constructs a new instance that is a deep copy of the source instance.
|
|
CountryInfo(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be
reflected in this instance and vice-versa.
|
|
CountryInfo(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAppMarketBillingEnabled()
Clears the 'appMarketBillingEnabled' field, the 'has' method for this field will now return false
|
void |
clearCountryCode()
Clears the 'countryCode' field, the 'has' method for this field will now return false
|
void |
clearCountyRequired()
Clears the 'countyRequired' field, the 'has' method for this field will now return false
|
void |
clearDefaultCurrency()
Clears the 'defaultCurrency' field, the 'has' method for this field will now return false
|
void |
clearDefaultLocale()
Clears the 'defaultLocale' field, the 'has' method for this field will now return false
|
void |
clearDefaultTimezone()
Clears the 'defaultTimezone' field, the 'has' method for this field will now return false
|
void |
clearDisplayName()
Clears the 'displayName' field, the 'has' method for this field will now return false
|
void |
clearLocalDisplayName()
Clears the 'localDisplayName' field, the 'has' method for this field will now return false
|
void |
clearStateProvinceRequired()
Clears the 'stateProvinceRequired' field, the 'has' method for this field will now return false
|
void |
clearZipPostalRequired()
Clears the 'zipPostalRequired' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
CountryInfo |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Boolean |
getAppMarketBillingEnabled()
Indicates whether the country is enabled for app market billing
|
String |
getCountryCode()
ISO 3166-1-alpha-2 code
|
Boolean |
getCountyRequired()
Indicates whether the county field is required when creating the address
|
String |
getDefaultCurrency() |
String |
getDefaultLocale() |
String |
getDefaultTimezone() |
String |
getDisplayName() |
protected GenericClient |
getGenericClient() |
JSONObject |
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be
reflected in this instance and vice-versa.
|
String |
getLocalDisplayName() |
Boolean |
getStateProvinceRequired()
Indicates whether the state/province field is required when creating the address
|
Boolean |
getZipPostalRequired()
Indicates whether the ZIP/Postal code field is required when creating the address
|
boolean |
hasAppMarketBillingEnabled()
Checks whether the 'appMarketBillingEnabled' field has been set, however the value could be null
|
boolean |
hasCountryCode()
Checks whether the 'countryCode' field has been set, however the value could be null
|
boolean |
hasCountyRequired()
Checks whether the 'countyRequired' field has been set, however the value could be null
|
boolean |
hasDefaultCurrency()
Checks whether the 'defaultCurrency' field has been set, however the value could be null
|
boolean |
hasDefaultLocale()
Checks whether the 'defaultLocale' field has been set, however the value could be null
|
boolean |
hasDefaultTimezone()
Checks whether the 'defaultTimezone' field has been set, however the value could be null
|
boolean |
hasDisplayName()
Checks whether the 'displayName' field has been set, however the value could be null
|
boolean |
hasLocalDisplayName()
Checks whether the 'localDisplayName' field has been set, however the value could be null
|
boolean |
hasStateProvinceRequired()
Checks whether the 'stateProvinceRequired' field has been set, however the value could be null
|
boolean |
hasZipPostalRequired()
Checks whether the 'zipPostalRequired' field has been set, however the value could be null
|
boolean |
isNotNullAppMarketBillingEnabled()
Checks whether the 'appMarketBillingEnabled' field is set and is not null
|
boolean |
isNotNullCountryCode()
Checks whether the 'countryCode' field is set and is not null
|
boolean |
isNotNullCountyRequired()
Checks whether the 'countyRequired' field is set and is not null
|
boolean |
isNotNullDefaultCurrency()
Checks whether the 'defaultCurrency' field is set and is not null
|
boolean |
isNotNullDefaultLocale()
Checks whether the 'defaultLocale' field is set and is not null
|
boolean |
isNotNullDefaultTimezone()
Checks whether the 'defaultTimezone' field is set and is not null
|
boolean |
isNotNullDisplayName()
Checks whether the 'displayName' field is set and is not null
|
boolean |
isNotNullLocalDisplayName()
Checks whether the 'localDisplayName' field is set and is not null
|
boolean |
isNotNullStateProvinceRequired()
Checks whether the 'stateProvinceRequired' field is set and is not null
|
boolean |
isNotNullZipPostalRequired()
Checks whether the 'zipPostalRequired' field is set and is not null
|
void |
mergeChanges(CountryInfo src)
Copy all the changed fields from the given source to this instance.
|
void |
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
|
CountryInfo |
setAppMarketBillingEnabled(Boolean appMarketBillingEnabled)
Sets the field 'appMarketBillingEnabled'.
|
CountryInfo |
setCountryCode(String countryCode)
Sets the field 'countryCode'.
|
CountryInfo |
setCountyRequired(Boolean countyRequired)
Sets the field 'countyRequired'.
|
CountryInfo |
setDefaultCurrency(String defaultCurrency)
Sets the field 'defaultCurrency'.
|
CountryInfo |
setDefaultLocale(String defaultLocale)
Sets the field 'defaultLocale'.
|
CountryInfo |
setDefaultTimezone(String defaultTimezone)
Sets the field 'defaultTimezone'.
|
CountryInfo |
setDisplayName(String displayName)
Sets the field 'displayName'.
|
CountryInfo |
setLocalDisplayName(String localDisplayName)
Sets the field 'localDisplayName'.
|
CountryInfo |
setStateProvinceRequired(Boolean stateProvinceRequired)
Sets the field 'stateProvinceRequired'.
|
CountryInfo |
setZipPostalRequired(Boolean zipPostalRequired)
Sets the field 'zipPostalRequired'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<CountryInfo> CREATOR
public static final JSONifiable.Creator<CountryInfo> JSON_CREATOR
public CountryInfo()
protected CountryInfo(boolean noInit)
public CountryInfo(String json) throws IllegalArgumentException
IllegalArgumentException
public CountryInfo(JSONObject jsonObject)
public CountryInfo(CountryInfo src)
public String getCountryCode()
public String getDisplayName()
public String getLocalDisplayName()
public String getDefaultCurrency()
public String getDefaultTimezone()
public Boolean getStateProvinceRequired()
public Boolean getZipPostalRequired()
public Boolean getCountyRequired()
public String getDefaultLocale()
public Boolean getAppMarketBillingEnabled()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullCountryCode()
public boolean isNotNullDisplayName()
public boolean isNotNullLocalDisplayName()
public boolean isNotNullDefaultCurrency()
public boolean isNotNullDefaultTimezone()
public boolean isNotNullStateProvinceRequired()
public boolean isNotNullZipPostalRequired()
public boolean isNotNullCountyRequired()
public boolean isNotNullDefaultLocale()
public boolean isNotNullAppMarketBillingEnabled()
public boolean hasCountryCode()
public boolean hasDisplayName()
public boolean hasLocalDisplayName()
public boolean hasDefaultCurrency()
public boolean hasDefaultTimezone()
public boolean hasStateProvinceRequired()
public boolean hasZipPostalRequired()
public boolean hasCountyRequired()
public boolean hasDefaultLocale()
public boolean hasAppMarketBillingEnabled()
public CountryInfo setCountryCode(String countryCode)
public CountryInfo setDisplayName(String displayName)
public CountryInfo setLocalDisplayName(String localDisplayName)
public CountryInfo setDefaultCurrency(String defaultCurrency)
public CountryInfo setDefaultTimezone(String defaultTimezone)
public CountryInfo setStateProvinceRequired(Boolean stateProvinceRequired)
public CountryInfo setZipPostalRequired(Boolean zipPostalRequired)
public CountryInfo setCountyRequired(Boolean countyRequired)
public CountryInfo setDefaultLocale(String defaultLocale)
public CountryInfo setAppMarketBillingEnabled(Boolean appMarketBillingEnabled)
public void clearCountryCode()
public void clearDisplayName()
public void clearLocalDisplayName()
public void clearDefaultCurrency()
public void clearDefaultTimezone()
public void clearStateProvinceRequired()
public void clearZipPostalRequired()
public void clearCountyRequired()
public void clearDefaultLocale()
public void clearAppMarketBillingEnabled()
public boolean containsChanges()
public void resetChangeLog()
public CountryInfo copyChanges()
public void mergeChanges(CountryInfo src)