Camel.Address¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Camel.Address(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a new
Camel.Address
object- Return type:
Create a new
Camel.Address
object.
- cat(source)¶
- Parameters:
source (
Camel.Address
) – sourceCamel.Address
object- Returns:
the number of addresses concatenated
- Return type:
Concatenate one address onto another. The addresses must be of the same type.
- copy(source)¶
- Parameters:
source (
Camel.Address
) – sourceCamel.Address
object- Returns:
the number of addresses copied
- Return type:
Copy the contents of one address into another.
- decode(raw)¶
- Parameters:
raw (
str
) – raw address description- Returns:
the number of addresses parsed or -1 on fail
- Return type:
Construct a new address from a raw address field.
- encode()¶
- Returns:
the encoded address
- Return type:
Encode an address in a format suitable for a raw header.
- format()¶
- Returns:
a newly allocated string containing the formatted addresses
- Return type:
Format an address in a format suitable for display.
- length()¶
- Returns:
the number of addresses contained in self
- Return type:
Get the number of addresses stored in the address self.
- new_clone()¶
- Returns:
the cloned address
- Return type:
Clone an existing address type.
- remove(index)¶
- Parameters:
index (
int
) – The address to remove, use -1 to remove all address.
Remove an address by index, or all addresses.
- unformat(raw)¶
- Parameters:
raw (
str
) – raw address description- Returns:
the number of addresses parsed or -1 on fail
- Return type:
Attempt to convert a previously formatted and/or edited address back into internal form.
- do_cat(source) virtual¶
- Parameters:
source (
Camel.Address
) – sourceCamel.Address
object- Returns:
the number of addresses concatenated
- Return type:
Concatenate one address onto another. The addresses must be of the same type.
- do_decode(raw) virtual¶
- Parameters:
raw (
str
) – raw address description- Returns:
the number of addresses parsed or -1 on fail
- Return type:
Construct a new address from a raw address field.
- do_encode() virtual¶
- Returns:
the encoded address
- Return type:
Encode an address in a format suitable for a raw header.
- do_format() virtual¶
- Returns:
a newly allocated string containing the formatted addresses
- Return type:
Format an address in a format suitable for display.
- do_length() virtual¶
- Returns:
the number of addresses contained in addr
- Return type:
Get the number of addresses stored in the address addr.