Aspose.Barcode for PHP via Java Generation and Recognition API docs
|
Inherits BaseJavaClass.
Public Member Functions | |
__construct () | |
getType () | |
getName () | |
setName (string $value) | |
getAddressLine1 () | |
setAddressLine1 (string $value) | |
getAddressLine2 () | |
setAddressLine2 (string $value) | |
getStreet () | |
setStreet (string $value) | |
getHouseNo () | |
setHouseNo (string $value) | |
getPostalCode () | |
setPostalCode (string $value) | |
getTown () | |
setTown (string $value) | |
getCountryCode () | |
setCountryCode (string $value) | |
clear () | |
equals (Address $obj) | |
hashCode () | |
Public Member Functions inherited from BaseJavaClass | |
__construct ($javaClass) | |
getJavaClass () | |
getJavaClassName () | |
isNull () | |
printJavaClassName () | |
Static Public Member Functions | |
static | construct ($javaClass) |
Protected Member Functions | |
init () | |
Protected Member Functions inherited from BaseJavaClass | |
setJavaClass ($javaClass) | |
Static Private Attributes | |
static | $javaClassName = "com.aspose.mw.barcode.complexbarcode.MwAddress" |
Address of creditor or debtor.
You can either set street, house number, postal code and town (type structured address) or address line 1 and 2 (type combined address elements). The type is automatically set once any of these fields is set. Before setting the fields, the address type is undetermined. If fields of both types are set, the address type becomes conflicting. Name and country code must always be set unless all fields are empty.
Address::__construct | ( | ) |
Address::clear | ( | ) |
Clears all fields and sets the type to AddressType.Undetermined.
|
static |
Address::equals | ( | Address | $obj | ) |
Determines whether the specified object is equal to the current object.
Address | $obj | The object to compare with the current object. |
Address::getAddressLine1 | ( | ) |
Gets the address line 1.
Address line 1 contains street name, house number or P.O. box.
Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structured, in which case it becomes AddressType.Conflicting.
This field is only used for combined elements addresses and is optional.
Address::getAddressLine2 | ( | ) |
Gets the address line 2. Address line 2 contains postal code and town. Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structured, in which case it becomes AddressType.Conflicting. This field is only used for combined elements addresses. For this type, it's mandatory.
Address::getCountryCode | ( | ) |
Gets the two-letter ISO country code.
The country code is mandatory unless the entire address contains null or emtpy values.
Address::getHouseNo | ( | ) |
Gets the house number.
Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting.
This field is only used for structured addresses and is optional.
Address::getName | ( | ) |
Gets the name, either the first and last name of a natural person or the company name of a legal person.
Address::getPostalCode | ( | ) |
Gets the postal code.
Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting.
This field is only used for structured addresses. For this type, it's mandatory.
string | The postal code. |
Address::getStreet | ( | ) |
Gets the street. The street must be speicfied without house number. Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field is only used for structured addresses and is optional.
Address::getTown | ( | ) |
Gets the town or city.
Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting.
This field is only used for structured addresses. For this type, it's mandatory.
Address::getType | ( | ) |
Gets the address type.
The address type is automatically set by either setting street / house number or address line 1 and 2. Before setting the fields, the address type is Undetermined. If fields of both types are set, the address type becomes Conflicting.
Address::hashCode | ( | ) |
Gets the hash code for this instance.
|
protected |
Reimplemented from BaseJavaClass.
Address::setAddressLine1 | ( | string | $value | ) |
Sets the address line 1.
Address line 1 contains street name, house number or P.O. box.
Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structured, in which case it becomes AddressType.Conflicting.
This field is only used for combined elements addresses and is optional.
string | $value | The address line 1. |
Address::setAddressLine2 | ( | string | $value | ) |
Sets the address line 2. Address line 2 contains postal code and town. Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structured, in which case it becomes AddressType.Conflicting. This field is only used for combined elements addresses. For this type, it's mandatory.
string | $value | The address line 2. |
Address::setCountryCode | ( | string | $value | ) |
Sets the two-letter ISO country code.
The country code is mandatory unless the entire address contains null or emtpy values.
string | $value | The ISO country code. |
Address::setHouseNo | ( | string | $value | ) |
Sets the house number.
Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting.
This field is only used for structured addresses and is optional.
string | $value | The house number. |
Address::setName | ( | string | $value | ) |
Sets the name, either the first and last name of a natural person or the company name of a legal person.
string | $value | The name. |
Address::setPostalCode | ( | string | $value | ) |
Sets the postal code.
Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting.
This field is only used for structured addresses. For this type, it's mandatory.
string | $value | The postal code. |
Address::setStreet | ( | string | $value | ) |
Sets the street.
The street must be speicfied without house number.
Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting.
This field is only used for structured addresses and is optional.
string | $value | The street. |
Address::setTown | ( | string | $value | ) |
Sets the town or city.
Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting.
This field is only used for structured addresses. For this type, it's mandatory.
string | $value | The town or city. |
|
staticprivate |