Class TSPInformation

  • All Implemented Interfaces:
    java.io.Serializable

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

    Class that defines a TSP Information 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 Summary

      Constructors 
      Constructor Description
      TSPInformation()
      Constructor method for the class TSPInformation.java.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addNewName​(java.lang.String language, java.lang.String name)
      Adds a new name in a specified language for this TSP.
      void addNewTradeName​(java.lang.String language, java.lang.String name)
      Adds a new trade name in a specified language for this TSP.
      void addNewTSPInformationExtension​(IAnyTypeExtension extension)
      Adds a new extension if it is not null.
      void addNewURI​(java.lang.String language, java.net.URI uri)
      Adds a new URI in a specified language for this TSP.
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getAllTSPNames()
      Gets all the TSP names in all the presented languages.
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getAllTSPTradeNames()
      Gets all the TSP trade names in all the presented languages.
      java.util.Map<java.lang.String,​java.util.List<java.net.URI>> getAllURI()
      Gets all the URI in all the presented languages.
      Address getTspAddress()
      Gets the value of the attribute tspAddress.
      java.util.List<IAnyTypeExtension> getTspInformationExtensions()
      Gets the value of the attribute tspInformationExtensions.
      java.util.List<java.lang.String> getTSPNamesForLanguage​(java.lang.String language)
      Gets the name for the specified language for this TSP.
      java.util.List<java.lang.String> getTSPTradeNamesForLanguage​(java.lang.String language)
      Gets the trade name for the specified language for this TSP.
      java.util.List<java.net.URI> getURIForLanguage​(java.lang.String language)
      Gets the URI for the specified language for this TSP.
      boolean isThereSomeName()
      Checks if there is at least one name for this TSP.
      boolean isThereSomeTradeName()
      Checks if there is at least one trade name for this TSP.
      boolean isThereSomeTSPInformationExtension()
      Checks if there is at least one TSP information extension.
      boolean isThereSomeURI()
      Checks if there is at least one URI for this TSP.
      void setTspAddress​(Address tspAddressParam)
      Sets the value of the attribute tspAddress.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TSPInformation

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

      • getAllTSPNames

        public final java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getAllTSPNames()
        Gets all the TSP names in all the presented languages.
        Returns:
        Map with all the names in differents languages for this TSP. null if there is not.
      • getTSPNamesForLanguage

        public final java.util.List<java.lang.String> getTSPNamesForLanguage​(java.lang.String language)
        Gets the name for the specified language for this TSP.
        Parameters:
        language - language from which gets the names (ISO 639).
        Returns:
        List of string with the names for the input language. If there is not, then null.
      • addNewName

        public final void addNewName​(java.lang.String language,
                                     java.lang.String name)
        Adds a new name in a specified language for this TSP.
        Parameters:
        language - language to which add the name (ISO 639).
        name - String that represents the name to add.
      • isThereSomeName

        public final boolean isThereSomeName()
        Checks if there is at least one name for this TSP.
        Returns:
        true if there is, otherwise false.
      • getAllTSPTradeNames

        public final java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getAllTSPTradeNames()
        Gets all the TSP trade names in all the presented languages.
        Returns:
        Map with all the trade names in differents languages for this TSP. null if there is not.
      • getTSPTradeNamesForLanguage

        public final java.util.List<java.lang.String> getTSPTradeNamesForLanguage​(java.lang.String language)
        Gets the trade name for the specified language for this TSP.
        Parameters:
        language - language from which gets the trade names (ISO 639).
        Returns:
        List of string with the trade names for the input language. If there is not, then null.
      • addNewTradeName

        public final void addNewTradeName​(java.lang.String language,
                                          java.lang.String name)
        Adds a new trade name in a specified language for this TSP.
        Parameters:
        language - language to which add the trade name (ISO 639).
        name - String that represents the trade name to add.
      • isThereSomeTradeName

        public final boolean isThereSomeTradeName()
        Checks if there is at least one trade name for this TSP.
        Returns:
        true if there is, otherwise false.
      • getTspAddress

        public final Address getTspAddress()
        Gets the value of the attribute tspAddress.
        Returns:
        the value of the attribute tspAddress.
      • setTspAddress

        public final void setTspAddress​(Address tspAddressParam)
        Sets the value of the attribute tspAddress.
        Parameters:
        tspAddressParam - The value for the attribute tspAddress.
      • getAllURI

        public final java.util.Map<java.lang.String,​java.util.List<java.net.URI>> getAllURI()
        Gets all the URI in all the presented languages.
        Returns:
        Map with all the URI in differents languages for this TSP. null if there is not.
      • getURIForLanguage

        public final java.util.List<java.net.URI> getURIForLanguage​(java.lang.String language)
        Gets the URI for the specified language for this TSP.
        Parameters:
        language - language from which gets the URI (ISO 639).
        Returns:
        List of URI for the input language. If there is not, then null.
      • addNewURI

        public final void addNewURI​(java.lang.String language,
                                    java.net.URI uri)
        Adds a new URI in a specified language for this TSP.
        Parameters:
        language - language to which add the URI (ISO 639).
        uri - String that represents the URI to add.
      • isThereSomeURI

        public final boolean isThereSomeURI()
        Checks if there is at least one URI for this TSP.
        Returns:
        true if there is, otherwise false.
      • addNewTSPInformationExtension

        public final void addNewTSPInformationExtension​(IAnyTypeExtension extension)
        Adds a new extension if it is not null.
        Parameters:
        extension - extension to add.
      • isThereSomeTSPInformationExtension

        public final boolean isThereSomeTSPInformationExtension()
        Checks if there is at least one TSP information extension.
        Returns:
        true if there is at least one TSP information extension, otherwise false.