public class InternationalAddressData extends AddressData
AddressData.Requirements| Modifier and Type | Field and Description | 
|---|---|
| static sirius.db.mixing.Mapping | COUNTRYContains the country code. | 
CITY, fieldLabel, requirements, STREET, ZIP| Constructor and Description | 
|---|
| InternationalAddressData(AddressData.Requirements requirements,
                        String fieldLabel)Creates a new instance with the given requirement. | 
| InternationalAddressData(AddressData.Requirements requirements,
                        String fieldLabel,
                        boolean verifyZip)Creates a new instance with the given requirement. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | areAllFieldsEmpty()Determines if all fields are empty. | 
| void | clear()Sets all fields to null. | 
| boolean | equals(Object obj) | 
| String | getCountry() | 
| int | hashCode() | 
| boolean | isAnyFieldEmpty()Determines if at least one field in the address is empty. | 
| void | setCountry(String country) | 
| protected void | verifyZip() | 
public static final sirius.db.mixing.Mapping COUNTRY
Note that a code list "country" exists which enumerates possible countries.
public InternationalAddressData(AddressData.Requirements requirements, @Nullable String fieldLabel)
requirements - determines which fields are required in certain constellationsfieldLabel - the name of the compund field which represents the addresspublic InternationalAddressData(AddressData.Requirements requirements, @Nullable String fieldLabel, boolean verifyZip)
requirements - determines which fields are required in certain constellationsfieldLabel - the name of the compund field which represents the addressverifyZip - determines if the given ZIP code should be verified using the countries code listpublic boolean areAllFieldsEmpty()
AddressDataareAllFieldsEmpty in class AddressDatapublic boolean isAnyFieldEmpty()
AddressDataisAnyFieldEmpty in class AddressDatapublic void clear()
AddressDataclear in class AddressDataprotected void verifyZip()
public boolean equals(Object obj)
equals in class AddressDatapublic int hashCode()
hashCode in class AddressDatapublic String getCountry()
public void setCountry(String country)
Copyright © 2018. All rights reserved.