Class Contact

    • Field Summary

      Fields 
      Modifier and Type Field 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 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 address
      Contact​(org.w3c.dom.NodeList nodes)
      XML parsing constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 contact
        phone - full phone number
        email - 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 name
        phone - full phone number
        email - full email
        street - street+number
        zip - postcode
        location - city
        country - 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

      • 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
      • setPhone

        public Contact setPhone​(java.lang.String phone)
        complete phone number of the contact
        Parameters:
        phone - the complete phone number
        Returns:
        fluent setter
      • setFax

        public Contact setFax​(java.lang.String fax)
        (optional) complete fax number
        Parameters:
        fax - complete fax number of the contact
        Returns:
        fluent setter
      • 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
      • 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
      • 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
      • setLocation

        public Contact setLocation​(java.lang.String location)
        city of the contact person, if different from organisation
        Parameters:
        location - city
        Returns:
        fluent setter
      • 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