Class Address

  • All Implemented Interfaces:
    java.io.Serializable

    public class Address
    extends java.lang.Object
    implements java.io.Serializable
    Address of creditor, final creditor or debtor.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Address()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      java.lang.String getCountryCode()
      Gets the two-letter ISO country code.
      java.lang.String getHouseNo()
      Gets the house or building number.
      java.lang.String getName()
      Gets the name, either the first and last name of a natural person or the company name of a legal person.
      java.lang.String getPostalCode()
      Gets the postal code
      java.lang.String getStreet()
      Gets the street.
      java.lang.String getTown()
      Gets the town.
      int hashCode()
      void setCountryCode​(java.lang.String countryCode)
      Sets the two-letter ISO country code
      void setHouseNo​(java.lang.String houseNo)
      Sets the house or building number.
      void setName​(java.lang.String name)
      Sets the name, either the first and last name of a natural person or the company name of a legal person.
      void setPostalCode​(java.lang.String postalCode)
      Sets the postal code
      void setStreet​(java.lang.String street)
      Sets the street.
      void setTown​(java.lang.String town)
      Sets the town
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Address

        public Address()
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the name, either the first and last name of a natural person or the company name of a legal person.
        Returns:
        the name
      • setName

        public void setName​(java.lang.String name)
        Sets the name, either the first and last name of a natural person or the company name of a legal person.

        The name is mandatory unless the entire address contains null or empty values.

        Parameters:
        name - the name
      • getStreet

        public java.lang.String getStreet()
        Gets the street.
        Returns:
        the street
      • setStreet

        public void setStreet​(java.lang.String street)
        Sets the street.

        This field must not contain the house or building number.

        This field is optional.

        Parameters:
        street - the street
      • getHouseNo

        public java.lang.String getHouseNo()
        Gets the house or building number.
        Returns:
        the house number
      • setHouseNo

        public void setHouseNo​(java.lang.String houseNo)
        Sets the house or building number.

        This field is optional.

        Parameters:
        houseNo - the house number
      • getPostalCode

        public java.lang.String getPostalCode()
        Gets the postal code
        Returns:
        the postal code
      • setPostalCode

        public void setPostalCode​(java.lang.String postalCode)
        Sets the postal code

        The postal code is mandatory unless the entire address contains null or empty values.

        Parameters:
        postalCode - the postal code
      • getTown

        public java.lang.String getTown()
        Gets the town.
        Returns:
        the town
      • setTown

        public void setTown​(java.lang.String town)
        Sets the town

        The town is mandatory unless the entire address contains null or empty values.

        Parameters:
        town - the town
      • getCountryCode

        public java.lang.String getCountryCode()
        Gets the two-letter ISO country code.
        Returns:
        the ISO country code
      • setCountryCode

        public void setCountryCode​(java.lang.String countryCode)
        Sets the two-letter ISO country code

        The country code is mandatory unless the entire address contains null or empty values.

        Parameters:
        countryCode - the ISO country code
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object