Package org.mustangproject
Class Contact
- java.lang.Object
-
- org.mustangproject.Contact
-
- All Implemented Interfaces:
IZUGFeRDExportableContact
public class Contact extends java.lang.Object implements IZUGFeRDExportableContact
a named contact person in an organisation for the organisation/company itsel please- See Also:
TradeParty
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringcountry2 character ISO code of a countryprotected java.lang.Stringemailemail addressprotected java.lang.Stringfaxthe fax number of the contact personprotected java.lang.Stringlocationcityprotected java.lang.Stringnamename of the contact personprotected java.lang.Stringphonephone of the contactprotected java.lang.Stringstreetstreet address (=name+number)protected java.lang.Stringzippostcode of the contact
-
Constructor Summary
Constructors Constructor Description Contact()empty 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 addressContact(org.w3c.dom.NodeList nodes)XML parsing constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCountry()two-letter country code of the contactjava.lang.StringgetEMail()java.lang.StringgetFax()java.lang.StringgetLocation()Returns the city of the contactjava.lang.StringgetName()First and last name of the recipientjava.lang.StringgetPhone()java.lang.StringgetStreet()Returns the street address (street+number) of the contactjava.lang.StringgetZIP()Postal code of the recipientContactsetCountry(java.lang.String country)two-letter ISO country code of the contact, if different from organisationContactsetEMail(java.lang.String email)personal email address of the contact personContactsetFax(java.lang.String fax)(optional) complete fax numberContactsetLocation(java.lang.String location)city of the contact person, if different from organisationContactsetName(java.lang.String name)the first and last name of the contactContactsetPhone(java.lang.String phone)complete phone number of the contactContactsetStreet(java.lang.String street)street and number, if the address is different to the organisationContactsetZIP(java.lang.String zip)the postcode, if the address is different to the organisation-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mustangproject.ZUGFeRD.IZUGFeRDExportableContact
getAdditionalAddress, getID, getVATID
-
-
-
-
Field Detail
-
name
protected java.lang.String name
name of the contact person
-
phone
protected java.lang.String phone
phone of the contact
-
email
protected java.lang.String email
email address
-
zip
protected java.lang.String zip
postcode of the contact
-
street
protected java.lang.String street
street address (=name+number)
-
location
protected java.lang.String location
city
-
country
protected java.lang.String country
2 character ISO code of a country
-
fax
protected java.lang.String fax
the fax number of the contact person
-
-
Constructor Detail
-
Contact
public Contact(java.lang.String name, java.lang.String phone, java.lang.String email)default constructor. Name, phone and email of sender contact person are e.g. required by XRechnung- Parameters:
name- full name of the contactphone- full phone numberemail- email address of the contact
-
Contact
public Contact()
empty constructor. as always, not recommended, for jackson...
-
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)complete specification of a named contact with a different address- Parameters:
name- full namephone- full phone numberemail- full emailstreet- street+numberzip- postcodelocation- citycountry- two-letter iso code
-
Contact
public Contact(org.w3c.dom.NodeList nodes)
XML parsing constructor- Parameters:
nodes- the nodelist returned e.g. from xpath
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:IZUGFeRDExportableContactFirst and last name of the recipient- Specified by:
getNamein interfaceIZUGFeRDExportableContact- Returns:
- First and last name of the recipient
-
setName
public Contact setName(java.lang.String name)
the first and last name of the contact- Parameters:
name- first and last name- Returns:
- fluent setter
-
getPhone
public java.lang.String getPhone()
- Specified by:
getPhonein interfaceIZUGFeRDExportableContact
-
setPhone
public Contact setPhone(java.lang.String phone)
complete phone number of the contact- Parameters:
phone- the complete phone number- Returns:
- fluent setter
-
getFax
public java.lang.String getFax()
- Specified by:
getFaxin interfaceIZUGFeRDExportableContact
-
setFax
public Contact setFax(java.lang.String fax)
(optional) complete fax number- Parameters:
fax- complete fax number of the contact- Returns:
- fluent setter
-
getEMail
public java.lang.String getEMail()
- Specified by:
getEMailin interfaceIZUGFeRDExportableContact
-
setEMail
public Contact setEMail(java.lang.String email)
personal email address of the contact person- Parameters:
email- the email address of the contact- Returns:
- fluent setter
-
getZIP
public java.lang.String getZIP()
Description copied from interface:IZUGFeRDExportableContactPostal code of the recipient- Specified by:
getZIPin interfaceIZUGFeRDExportableContact- Returns:
- Postal code of the recipient
-
setZIP
public Contact setZIP(java.lang.String zip)
the postcode, if the address is different to the organisation- Parameters:
zip- the postcode of the contact- Returns:
- fluent setter
-
getStreet
public java.lang.String getStreet()
Description copied from interface:IZUGFeRDExportableContactReturns the street address (street+number) of the contact- Specified by:
getStreetin interfaceIZUGFeRDExportableContact- Returns:
- street address (street+number) of the contact
-
setStreet
public Contact setStreet(java.lang.String street)
street and number, if the address is different to the organisation- Parameters:
street- street and number of the contact- Returns:
- fluent setter
-
getLocation
public java.lang.String getLocation()
Description copied from interface:IZUGFeRDExportableContactReturns the city of the contact- Specified by:
getLocationin interfaceIZUGFeRDExportableContact- Returns:
- Returns the city of the recipient
-
setLocation
public Contact setLocation(java.lang.String location)
city of the contact person, if different from organisation- Parameters:
location- city- Returns:
- fluent setter
-
getCountry
public java.lang.String getCountry()
Description copied from interface:IZUGFeRDExportableContacttwo-letter country code of the contact- Specified by:
getCountryin interfaceIZUGFeRDExportableContact- Returns:
- two-letter iso country code of the contact
-
setCountry
public Contact setCountry(java.lang.String country)
two-letter ISO country code of the contact, if different from organisation- Parameters:
country- two-letter iso code- Returns:
- fluent setter
-
-