Class Address

  • All Implemented Interfaces:
    java.io.Serializable

    public class Address
    extends java.lang.Object
    implements java.io.Serializable

    Class that represents an Address with all its information not dependent of the specification or TSL version.

    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

    Version:
    1.0, 10/11/2020.
    See Also:
    Serialized Form
    • Constructor Detail

      • Address

        public Address()
        Constructor method for the class Address.java.
    • Method Detail

      • getPostalAddresses

        public final java.util.Map<java.lang.String,​java.util.List<PostalAddress>> getPostalAddresses()
        Gets the value of the attribute postalAddresses.
        Returns:
        the value of the attribute postalAddresses.
      • addNewPostalAddress

        public final void addNewPostalAddress​(java.lang.String language,
                                              PostalAddress pa)
        Adds a new Postal Addres for the specified language.
        Parameters:
        language - language to which add a new postal address.
        pa - Postal Address to add.
      • setPostalAddresses

        public final void setPostalAddresses​(java.util.Map<java.lang.String,​java.util.List<PostalAddress>> paList)
        Sets the value of the attribute postalAddresses.
        Parameters:
        paList - The value for the attribute postalAddresses.
      • isThereSomePostalAddress

        public final boolean isThereSomePostalAddress()
        Checks if there is some postal address added to this address.
        Returns:
        true if there is, otherwise false.
      • getElectronicAddresses

        public final java.util.Map<java.lang.String,​java.util.List<java.net.URI>> getElectronicAddresses()
        Gets the value of the attribute electronicAddresses.
        Returns:
        the value of the attribute electronicAddresses.
      • addNewElectronicAddress

        public final void addNewElectronicAddress​(java.lang.String language,
                                                  java.net.URI ea)
        Adds a new Electronic Addres for the specified language.
        Parameters:
        language - language to which add a new electronic address.
        ea - Electronic address to add.
      • setElectronicAddresses

        public final void setElectronicAddresses​(java.util.Map<java.lang.String,​java.util.List<java.net.URI>> eaList)
        Sets the value of the attribute electronicAddresses.
        Parameters:
        eaList - The value for the attribute electronicAddresses.
      • isThereSomeElectronicAddress

        public final boolean isThereSomeElectronicAddress()
        Checks if there is some electronic address added to this address.
        Returns:
        true if there is, otherwise false.