Class TSPInformation
- java.lang.Object
-
- es.gob.afirma.tsl.parsing.impl.common.TSPInformation
-
- All Implemented Interfaces:
java.io.Serializable
public class TSPInformation extends java.lang.Object implements java.io.SerializableClass 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 voidaddNewName(java.lang.String language, java.lang.String name)Adds a new name in a specified language for this TSP.voidaddNewTradeName(java.lang.String language, java.lang.String name)Adds a new trade name in a specified language for this TSP.voidaddNewTSPInformationExtension(IAnyTypeExtension extension)Adds a new extension if it is notnull.voidaddNewURI(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.AddressgetTspAddress()Gets the value of the attributetspAddress.java.util.List<IAnyTypeExtension>getTspInformationExtensions()Gets the value of the attributetspInformationExtensions.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.booleanisThereSomeName()Checks if there is at least one name for this TSP.booleanisThereSomeTradeName()Checks if there is at least one trade name for this TSP.booleanisThereSomeTSPInformationExtension()Checks if there is at least one TSP information extension.booleanisThereSomeURI()Checks if there is at least one URI for this TSP.voidsetTspAddress(Address tspAddressParam)Sets the value of the attributetspAddress.
-
-
-
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.
nullif 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:
trueif 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.
nullif 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:
trueif there is, otherwise false.
-
getTspAddress
public final Address getTspAddress()
Gets the value of the attributetspAddress.- Returns:
- the value of the attribute
tspAddress.
-
setTspAddress
public final void setTspAddress(Address tspAddressParam)
Sets the value of the attributetspAddress.- Parameters:
tspAddressParam- The value for the attributetspAddress.
-
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.
nullif 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:
trueif there is, otherwise false.
-
getTspInformationExtensions
public final java.util.List<IAnyTypeExtension> getTspInformationExtensions()
Gets the value of the attributetspInformationExtensions.- Returns:
- the value of the attribute
tspInformationExtensions.
-
addNewTSPInformationExtension
public final void addNewTSPInformationExtension(IAnyTypeExtension extension)
Adds a new extension if it is notnull.- Parameters:
extension- extension to add.
-
isThereSomeTSPInformationExtension
public final boolean isThereSomeTSPInformationExtension()
Checks if there is at least one TSP information extension.- Returns:
trueif there is at least one TSP information extension, otherwisefalse.
-
-