Aspose.Barcode for Python via Java Generation and Recognition API docs
|
Address of creditor or debtor. More...
Inherits BaseJavaClass.
Public Member Functions | |
None | __init__ (self) |
None | clear (self) |
Clears all fields and sets the type to AddressType.Undetermined. More... | |
bool | equals (self, Address obj) |
Determines whether the specified object is equal to the current object. More... | |
str | getAddressLine1 (self) |
Gets the address line 1. More... | |
str | getAddressLine2 (self) |
Gets the address line 2. More... | |
str | getCountryCode (self) |
Gets the two-letter ISO country code. More... | |
str | getHouseNo (self) |
Gets the house number. More... | |
str | getName (self) |
Gets the name, either the first and last name of a natural person or the company name of a legal person. More... | |
str | getPostalCode (self) |
Gets the postal code. More... | |
str | getStreet (self) |
Gets the street. More... | |
str | getTown (self) |
Gets the town or city. More... | |
int | getType (self) |
Gets the address type. More... | |
int | hashCode (self) |
Gets the hash code for this instance. More... | |
None | init (self) |
None | setAddressLine1 (self, Optional[str] value) |
Sets the address line 1. More... | |
None | setAddressLine2 (self, Optional[str] value) |
Sets the address line 2. More... | |
None | setCountryCode (self, Optional[str] value) |
Sets the two-letter ISO country code. More... | |
None | setHouseNo (self, Optional[str] value) |
Sets the house number. More... | |
None | setName (self, Optional[str] value) |
Sets the name, either the first and last name of a natural person or the company name of a legal person. More... | |
None | setPostalCode (self, Optional[str] value) |
Sets the postal code. More... | |
None | setStreet (self, Optional[str] value) |
Sets the street. More... | |
None | setTown (self, Optional[str] value) |
Sets the town or city. More... | |
Public Member Functions inherited from BaseJavaClass | |
None | __init__ (self, javaClass) |
def | getJavaClass (self) |
str | getJavaClassName (self) |
bool | isNull (self) |
None | printJavaClassName (self) |
None | setJavaClass (self, javaClass) |
Static Public Member Functions | |
Address | construct (javaClass) |
Static Public Attributes | |
string | javaClassName = "com.aspose.mw.barcode.complexbarcode.MwAddress" |
Additional Inherited Members | |
Public Attributes inherited from BaseJavaClass | |
javaClass | |
javaClassName | |
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.
None __init__ | ( | self | ) |
None clear | ( | self | ) |
Clears all fields and sets the type to AddressType.Undetermined.
|
static |
bool equals | ( | self, | |
Address | obj | ||
) |
Determines whether the specified object is equal to the current object.
obj | The object to compare with the current object. |
str getAddressLine1 | ( | self | ) |
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.
str getAddressLine2 | ( | self | ) |
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.
str getCountryCode | ( | self | ) |
Gets the two-letter ISO country code.
The country code is mandatory unless the entire address contains None or emtpy values.
str getHouseNo | ( | self | ) |
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.
str getName | ( | self | ) |
Gets the name, either the first and last name of a natural person or the company name of a legal person.
str getPostalCode | ( | self | ) |
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.
str getStreet | ( | self | ) |
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.
str getTown | ( | self | ) |
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.
int getType | ( | self | ) |
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.
int hashCode | ( | self | ) |
Gets the hash code for this instance.
None init | ( | self | ) |
Reimplemented from BaseJavaClass.
None setAddressLine1 | ( | self, | |
Optional[str] | 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.
:The | address line 1. |
None setAddressLine2 | ( | self, | |
Optional[str] | 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.
:The | address line 2. |
None setCountryCode | ( | self, | |
Optional[str] | value | ||
) |
Sets the two-letter ISO country code.
The country code is mandatory unless the entire address contains None or emtpy values.
:The | ISO country code. |
None setHouseNo | ( | self, | |
Optional[str] | 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.
:The | house number. |
None setName | ( | self, | |
Optional[str] | value | ||
) |
Sets the name, either the first and last name of a natural person or the company name of a legal person.
:The | name. |
None setPostalCode | ( | self, | |
Optional[str] | 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.
:The | postal code. |
None setStreet | ( | self, | |
Optional[str] | 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.
:The | street. |
None setTown | ( | self, | |
Optional[str] | 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.
:The | town or city. |
|
static |