Aspose.Barcode for Python via Java Generation and Recognition API docs
asposebarcode.ComplexBarcode.Address Class Reference

Address of creditor or debtor. More...

Inherits asposebarcode.Assist.BaseJavaClass.

Public Member Functions

def __init__ (self, arg)
 
def getType (self)
 Gets the address type. More...
 
def getName (self)
 Gets the name, either the first and last name of a natural person or the company name of a legal person. More...
 
def setName (self, value)
 Sets the name, either the first and last name of a natural person or the company name of a legal person. More...
 
def getAddressLine1 (self)
 Gets the address line 1. More...
 
def setAddressLine1 (self, value)
 Sets the address line 1. More...
 
def getAddressLine2 (self)
 Gets the address line 2. More...
 
def setAddressLine2 (self, value)
 Sets the address line 2. More...
 
def getStreet (self)
 Gets the street. More...
 
def setStreet (self, value)
 Sets the street. More...
 
def getHouseNo (self)
 Gets the house number. More...
 
def setHouseNo (self, value)
 Sets the house number. More...
 
def getPostalCode (self)
 Gets the postal code. More...
 
def setPostalCode (self, value)
 Sets the postal code. More...
 
def getTown (self)
 Gets the town or city. More...
 
def setTown (self, value)
 Sets the town or city. More...
 
def getCountryCode (self)
 Gets the two-letter ISO country code. More...
 
def setCountryCode (self, value)
 Sets the two-letter ISO country code. More...
 
def clear (self)
 Clears all fields and sets the type to AddressType.Undetermined. More...
 
def equals (self, obj)
 Determines whether the specified object is equal to the current object. More...
 
def hashCode (self)
 Gets the hash code for this instance. More...
 
def init (self)
 
- Public Member Functions inherited from asposebarcode.Assist.BaseJavaClass
def getJavaClass (self)
 
def setJavaClass (self, javaClass)
 
def getJavaClassName (self)
 
def isNull (self)
 
def printJavaClassName (self)
 

Static Public Member Functions

def initAddress (arg)
 

Static Public Attributes

string javaClassName = "com.aspose.mw.barcode.complexbarcode.MwAddress"
 

Additional Inherited Members

- Public Attributes inherited from asposebarcode.Assist.BaseJavaClass
 javaClass
 
 javaClassName
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def asposebarcode.ComplexBarcode.Address.__init__ (   self,
  arg 
)

Member Function Documentation

◆ clear()

def asposebarcode.ComplexBarcode.Address.clear (   self)

Clears all fields and sets the type to AddressType.Undetermined.

◆ equals()

def asposebarcode.ComplexBarcode.Address.equals (   self,
  obj 
)

Determines whether the specified object is equal to the current object.

Returns
true if the specified object is equal to the current object; otherwise, false.
Parameters
objThe object to compare with the current object.

◆ getAddressLine1()

def asposebarcode.ComplexBarcode.Address.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. Value: The address line 1.

◆ getAddressLine2()

def asposebarcode.ComplexBarcode.Address.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. Value: The address line 2.

◆ getCountryCode()

def asposebarcode.ComplexBarcode.Address.getCountryCode (   self)

Gets the two-letter ISO country code.

The country code is mandatory unless the entire address contains null or emtpy values. Value: The ISO country code.

◆ getHouseNo()

def asposebarcode.ComplexBarcode.Address.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. Value: The house number.

◆ getName()

def asposebarcode.ComplexBarcode.Address.getName (   self)

Gets the name, either the first and last name of a natural person or the company name of a legal person.

Value: The name.

◆ getPostalCode()

def asposebarcode.ComplexBarcode.Address.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. Value: The postal code.

◆ getStreet()

def asposebarcode.ComplexBarcode.Address.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. Value: The street.

◆ getTown()

def asposebarcode.ComplexBarcode.Address.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. Value: The town or city.

◆ getType()

def asposebarcode.ComplexBarcode.Address.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. Value: The address type.

◆ hashCode()

def asposebarcode.ComplexBarcode.Address.hashCode (   self)

Gets the hash code for this instance.

Returns
A hash code for the current object.

◆ init()

def asposebarcode.ComplexBarcode.Address.init (   self)

◆ initAddress()

def asposebarcode.ComplexBarcode.Address.initAddress (   arg)
static

◆ setAddressLine1()

def asposebarcode.ComplexBarcode.Address.setAddressLine1 (   self,
  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. Value: The address line 1.

◆ setAddressLine2()

def asposebarcode.ComplexBarcode.Address.setAddressLine2 (   self,
  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. Value: The address line 2.

◆ setCountryCode()

def asposebarcode.ComplexBarcode.Address.setCountryCode (   self,
  value 
)

Sets the two-letter ISO country code.

The country code is mandatory unless the entire address contains null or emtpy values. Value: The ISO country code.

◆ setHouseNo()

def asposebarcode.ComplexBarcode.Address.setHouseNo (   self,
  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. Value: The house number.

◆ setName()

def asposebarcode.ComplexBarcode.Address.setName (   self,
  value 
)

Sets the name, either the first and last name of a natural person or the company name of a legal person.

Value: The name.

◆ setPostalCode()

def asposebarcode.ComplexBarcode.Address.setPostalCode (   self,
  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. Value: The postal code.

◆ setStreet()

def asposebarcode.ComplexBarcode.Address.setStreet (   self,
  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. Value: The street.

◆ setTown()

def asposebarcode.ComplexBarcode.Address.setTown (   self,
  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. Value: The town or city.

Member Data Documentation

◆ javaClassName

string asposebarcode.ComplexBarcode.Address.javaClassName = "com.aspose.mw.barcode.complexbarcode.MwAddress"
static