Class TakenOverBy
- java.lang.Object
-
- es.gob.afirma.tsl.parsing.impl.common.extensions.Extension
-
- es.gob.afirma.tsl.parsing.impl.common.extensions.TakenOverBy
-
- All Implemented Interfaces:
IAnyTypeExtension,java.io.Serializable
public class TakenOverBy extends Extension
Class that represents a TakenOverBy TSL extension.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.1, 15/06/2021.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface es.gob.afirma.tsl.parsing.ifaces.IAnyTypeExtension
IMPL_ADDITIONAL_SERVICE_INFORMATION, IMPL_EXPIRED_CERTS_REVOCATION_INFO, IMPL_QUALIFICATIONS, IMPL_TAKENOVERBY, IMPL_UNKNOWN_EXTENSION, TYPE_SCHEME, TYPE_SERVICE_INFORMATION, TYPE_TSP_INFORMATION
-
-
Constructor Summary
Constructors Constructor Description TakenOverBy(boolean isCritical, int extensionType)Constructor method for the class TakenOverBy.java.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNewSchemeOperatorName(java.lang.String language, java.lang.String schemeOperatorName)Adds a new scheme operator name for the specified language.voidaddNewTSPName(java.lang.String language, java.lang.String name)Adds a new TSP name in a specified language.java.util.Map<java.lang.String,java.lang.String>getAllSchemeOperatorNames()Gets the value of the attributeschemeOperatorNames.java.util.Map<java.lang.String,java.util.List<java.lang.String>>getAllTSPNames()Gets all the TSP names in all the presented languages.java.lang.StringgetSchemeOperatorNameInLanguage(java.lang.String language)Gets the scheme operator name for the specified language.java.lang.StringgetSchemeTerritory()Gets the value of the attributeschemeTerritory.java.util.List<java.lang.String>getTSPNamesForLanguage(java.lang.String language)Gets the TSP name for the specified language.java.net.URIgetUri()Gets the value of the attributeuri.booleanisThereSomeSchemeOperatorName()Checks if there is at least one scheme operator name.booleanisThereSomeTSPName()Checks if there is at least one TSP name.voidsetSchemeTerritory(java.lang.String schemeTerritoryParam)Sets the value of the attributeschemeTerritory.voidsetUri(java.net.URI uriParam)Sets the value of the attributeuri.-
Methods inherited from class es.gob.afirma.tsl.parsing.impl.common.extensions.Extension
checkExtensionValue, extensionTypeToString, getExtensionType, getImplementationExtension, isCritical
-
-
-
-
Constructor Detail
-
TakenOverBy
public TakenOverBy(boolean isCritical, int extensionType)Constructor method for the class TakenOverBy.java.- Parameters:
isCritical- Flag to indicate if this extension is critical (true) or not (false).extensionType- Extension type. Refer to its location inside the XML. It could be one of the following:- Scheme Extension:
IAnyTypeExtension.TYPE_SCHEME - Scheme Extension:
IAnyTypeExtension.TYPE_TSP_INFORMATION - Scheme Extension:
IAnyTypeExtension.TYPE_SERVICE_INFORMATION
- Scheme Extension:
-
-
Method Detail
-
getUri
public final java.net.URI getUri()
Gets the value of the attributeuri.- Returns:
- the value of the attribute
uri.
-
setUri
public final void setUri(java.net.URI uriParam)
Sets the value of the attributeuri.- Parameters:
uriParam- The value for the attributeuri.
-
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 TSP name for the specified language.- 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.
-
addNewTSPName
public final void addNewTSPName(java.lang.String language, java.lang.String name)Adds a new TSP name in a specified language.- Parameters:
language- language to which add the name (ISO 639).name- String that represents the name to add.
-
isThereSomeTSPName
public final boolean isThereSomeTSPName()
Checks if there is at least one TSP name.- Returns:
trueif there is, otherwise false.
-
getAllSchemeOperatorNames
public final java.util.Map<java.lang.String,java.lang.String> getAllSchemeOperatorNames()
Gets the value of the attributeschemeOperatorNames.- Returns:
- the value of the attribute
schemeOperatorNames.
-
getSchemeOperatorNameInLanguage
public final java.lang.String getSchemeOperatorNameInLanguage(java.lang.String language)
Gets the scheme operator name for the specified language.- Parameters:
language- Language from which gets the scheme operator name.- Returns:
- the scheme operator name for the specified language, or
nullif not exists for that language.
-
addNewSchemeOperatorName
public final void addNewSchemeOperatorName(java.lang.String language, java.lang.String schemeOperatorName)Adds a new scheme operator name for the specified language.- Parameters:
language- language to which associate the new scheme operator name. If it isnull, then this method do nothing.schemeOperatorName- Scheme operator name.
-
isThereSomeSchemeOperatorName
public final boolean isThereSomeSchemeOperatorName()
Checks if there is at least one scheme operator name.- Returns:
trueif there is, otherwise false.
-
getSchemeTerritory
public final java.lang.String getSchemeTerritory()
Gets the value of the attributeschemeTerritory.- Returns:
- the value of the attribute
schemeTerritory.
-
setSchemeTerritory
public final void setSchemeTerritory(java.lang.String schemeTerritoryParam)
Sets the value of the attributeschemeTerritory.- Parameters:
schemeTerritoryParam- The value for the attributeschemeTerritory.
-
-