public class Contact extends java.lang.Object implements IZUGFeRDExportableContact
TradeParty| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
country
2 character ISO code of a country
|
protected java.lang.String |
email
email address
|
protected java.lang.String |
fax
the fax number of the contact person
|
protected java.lang.String |
location
city
|
protected java.lang.String |
name
name of the contact person
|
protected java.lang.String |
phone
phone of the contact
|
protected java.lang.String |
street
street address (=name+number)
|
protected java.lang.String |
zip
postcode of the contact
|
| Constructor and Description |
|---|
Contact()
empty constructor.
|
Contact(org.w3c.dom.NodeList nodes)
XML parsing constructor
|
Contact(java.lang.String name,
java.lang.String phone,
java.lang.String email)
default constructor.
|
Contact(java.lang.String name,
java.lang.String phone,
java.lang.String email,
java.lang.String street,
java.lang.String zip,
java.lang.String location,
java.lang.String country)
complete specification of a named contact with a different address
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCountry()
two-letter country code of the contact
|
java.lang.String |
getEMail() |
java.lang.String |
getFax() |
java.lang.String |
getLocation()
Returns the city of the contact
|
java.lang.String |
getName()
First and last name of the recipient
|
java.lang.String |
getPhone() |
java.lang.String |
getStreet()
Returns the street address (street+number) of the contact
|
java.lang.String |
getZIP()
Postal code of the recipient
|
Contact |
setCountry(java.lang.String country)
two-letter ISO country code of the contact, if different from organisation
|
Contact |
setEMail(java.lang.String email)
personal email address of the contact person
|
Contact |
setFax(java.lang.String fax)
(optional) complete fax number
|
Contact |
setLocation(java.lang.String location)
city of the contact person, if different from organisation
|
Contact |
setName(java.lang.String name)
the first and last name of the contact
|
Contact |
setPhone(java.lang.String phone)
complete phone number of the contact
|
Contact |
setStreet(java.lang.String street)
street and number, if the address is different to the organisation
|
Contact |
setZIP(java.lang.String zip)
the postcode, if the address is different to the organisation
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAdditionalAddress, getID, getVATIDprotected java.lang.String name
protected java.lang.String phone
protected java.lang.String email
protected java.lang.String zip
protected java.lang.String street
protected java.lang.String location
protected java.lang.String country
protected java.lang.String fax
public Contact(java.lang.String name,
java.lang.String phone,
java.lang.String email)
name - full name of the contactphone - full phone numberemail - email address of the contactpublic Contact()
public Contact(java.lang.String name,
java.lang.String phone,
java.lang.String email,
java.lang.String street,
java.lang.String zip,
java.lang.String location,
java.lang.String country)
name - full namephone - full phone numberemail - full emailstreet - street+numberzip - postcodelocation - citycountry - two-letter iso codepublic Contact(org.w3c.dom.NodeList nodes)
nodes - the nodelist returned e.g. from xpathpublic java.lang.String getName()
IZUGFeRDExportableContactgetName in interface IZUGFeRDExportableContactpublic Contact setName(java.lang.String name)
name - first and last namepublic java.lang.String getPhone()
getPhone in interface IZUGFeRDExportableContactpublic Contact setPhone(java.lang.String phone)
phone - the complete phone numberpublic java.lang.String getFax()
getFax in interface IZUGFeRDExportableContactpublic Contact setFax(java.lang.String fax)
fax - complete fax number of the contactpublic java.lang.String getEMail()
getEMail in interface IZUGFeRDExportableContactpublic Contact setEMail(java.lang.String email)
email - the email address of the contactpublic java.lang.String getZIP()
IZUGFeRDExportableContactgetZIP in interface IZUGFeRDExportableContactpublic Contact setZIP(java.lang.String zip)
zip - the postcode of the contactpublic java.lang.String getStreet()
IZUGFeRDExportableContactgetStreet in interface IZUGFeRDExportableContactpublic Contact setStreet(java.lang.String street)
street - street and number of the contactpublic java.lang.String getLocation()
IZUGFeRDExportableContactgetLocation in interface IZUGFeRDExportableContactpublic Contact setLocation(java.lang.String location)
location - citypublic java.lang.String getCountry()
IZUGFeRDExportableContactgetCountry in interface IZUGFeRDExportableContactpublic Contact setCountry(java.lang.String country)
country - two-letter iso codeCopyright © 2023. All rights reserved.