Class SchemeInformation
- java.lang.Object
-
- es.gob.afirma.tsl.parsing.impl.common.SchemeInformation
-
- All Implemented Interfaces:
java.io.Serializable
public class SchemeInformation extends java.lang.Object implements java.io.SerializableClass that defines the TSL Scheme 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 SchemeInformation()Constructor method for the class SchemeInformation.java.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNewDistributionPoint(java.net.URI dpUri)Adds a new distribution point.voidaddNewLegalNotice(java.lang.String language, java.lang.String legalNotice)Adds a new scheme legal notice in a specific language.voidaddNewPointerToOtherTSL(TSLPointer pointer)Adds a new pointer to other TSL.voidaddNewPolicy(java.lang.String language, java.net.URI policyUri)Adds a new scheme policy in a specific language.voidaddNewSchemeInformationExtension(IAnyTypeExtension extension)Adds a new extension if it is notnull.voidaddNewSchemeInformationURI(java.lang.String language, java.net.URI schemeInformationURI)Adds a new scheme information URI for the specified language.voidaddNewSchemeName(java.lang.String language, java.lang.String schemeName)Adds a new scheme name for the specified language.voidaddNewSchemeOperatorName(java.lang.String language, java.lang.String schemeOperatorName)Adds a new scheme operator name for the specified language.voidaddNewSchemeTypeCommunityRule(java.lang.String language, java.net.URI stcrUri)Adds a new scheme type community rule URI for the specified language.java.util.List<java.net.URI>getDistributionPoints()Gets the value of the attributedistributionPoints.intgetHistoricalPeriod()Gets the value of the attributehistoricalPeriod.java.lang.StringgetLegalNoticeInLanguage(java.lang.String language)Gets the notice from the input language.java.util.Map<java.lang.String,java.lang.String>getLegalNotices()Gets the value of the attributelegalNotices.java.util.DategetListIssueDateTime()Gets the value of the attributelistIssueDateTime.java.util.DategetNextUpdate()Gets the value of the attributenextUpdate.java.util.List<TSLPointer>getPointersToOtherTSL()Gets the value of the attributepointersToOtherTSL.java.util.Map<java.lang.String,java.net.URI>getPolicies()Gets the value of the attributepolicies.java.net.URIgetPolicyInLanguage(java.lang.String language)Gets the policy assigned to the input language.java.util.List<IAnyTypeExtension>getSchemeInformationExtensions()Gets the value of the attributeschemeInformationExtensions.java.util.List<java.net.URI>getSchemeInformationURIinLanguage(java.lang.String language)Gets the scheme information URI list for the specified language.java.util.Map<java.lang.String,java.util.List<java.net.URI>>getSchemeInformationURIs()Gets the value of the attributeschemeInformationURIs.java.lang.StringgetSchemeName(java.lang.String language)Gets the scheme name for the specified language.java.util.Map<java.lang.String,java.lang.String>getSchemeNames()Gets the value of the attributeschemeNames.AddressgetSchemeOperatorAddress()Gets the value of the attributeschemeOperatorAddress.java.util.List<java.lang.String>getSchemeOperatorNameInLanguage(java.lang.String language)Gets the scheme operator name for the specified language.java.util.Map<java.lang.String,java.util.List<java.lang.String>>getSchemeOperatorNames()Gets the value of the attributeschemeOperatorNames.java.lang.StringgetSchemeTerritory()Gets the value of the attributeschemeTerritory.java.util.Map<java.lang.String,java.util.List<java.net.URI>>getSchemeTypeCommunityRules()Gets the value of the attributeschemeTypeCommunityRules.java.util.List<java.net.URI>getSchemeTypeCommunityRulesInLanguage(java.lang.String language)Gets the scheme type community rules for the specified language.java.net.URIgetStatusDeterminationApproach()Gets the value of the attributestatusDeterminationApproach.intgetTslSequenceNumber()Gets the value of the attributetslSequenceNumber.java.net.URIgetTslType()Gets the value of the attributetslType.intgetTslVersionIdentifier()Gets the value of the attributetslVersionIdentifier.booleanisThereSomeDistributionPoint()Checks if there is at least one distribution point.booleanisThereSomeLegalNotice()Checks if there is at least one scheme legal notice.booleanisThereSomePointerToOtherTSL()Checks if there is at least one pointer to other TSL.booleanisThereSomePolicy()Checks if there is at least one scheme policy.booleanisThereSomeSchemeInformationExtension()Checks if there is at least one scheme information extension.booleanisThereSomeSchemeInformationURI()Checks if there is at least one scheme information URI.booleanisThereSomeSchemeName()Checks if there is at least one scheme name added.booleanisThereSomeSchemeTypeCommunityRule()Checks if there is at least one scheme type community rule.voidsetDistributionPoints(java.util.List<java.net.URI> distributionPointsParam)Sets the value of the attributedistributionPoints.voidsetHistoricalPeriod(int historicalPeriodParam)Sets the value of the attributehistoricalPeriod.voidsetLegalNotices(java.util.Map<java.lang.String,java.lang.String> legalNoticesParam)Sets the value of the attributelegalNotices.voidsetListIssueDateTime(java.util.Date listIssueDateTimeParam)Sets the value of the attributelistIssueDateTime.voidsetNextUpdate(java.util.Date nextUpdateParam)Sets the value of the attributenextUpdate.voidsetPointersToOtherTSL(java.util.List<TSLPointer> pointersToOtherTSLParam)Sets the value of the attributepointersToOtherTSL.voidsetPolicies(java.util.Map<java.lang.String,java.net.URI> policiesParam)Sets the value of the attributepolicies.voidsetSchemeNames(java.util.Map<java.lang.String,java.lang.String> schemeNamesParam)Sets the value of the attributeschemeNames.voidsetSchemeOperatorAddress(Address schemeOperatorAddressParam)Sets the value of the attributeschemeOperatorAddress.voidsetSchemeTerritory(java.lang.String schemeTerritoryParam)Sets the value of the attributeschemeTerritory.voidsetStatusDeterminationApproach(java.net.URI statusDeterminationApproachParam)Sets the value of the attributestatusDeterminationApproach.voidsetTslSequenceNumber(int tslSequenceNumberParam)Sets the value of the attributetslSequenceNumber.voidsetTslType(java.net.URI tslTypeParam)Sets the value of the attributetslType.voidsetTslVersionIdentifier(int tslVersionIdentifierParam)Sets the value of the attributetslVersionIdentifier.
-
-
-
Method Detail
-
getTslVersionIdentifier
public final int getTslVersionIdentifier()
Gets the value of the attributetslVersionIdentifier.- Returns:
- the value of the attribute
tslVersionIdentifier.
-
setTslVersionIdentifier
public final void setTslVersionIdentifier(int tslVersionIdentifierParam)
Sets the value of the attributetslVersionIdentifier.- Parameters:
tslVersionIdentifierParam- The value for the attributetslVersionIdentifier.
-
getTslSequenceNumber
public final int getTslSequenceNumber()
Gets the value of the attributetslSequenceNumber.- Returns:
- the value of the attribute
tslSequenceNumber.
-
setTslSequenceNumber
public final void setTslSequenceNumber(int tslSequenceNumberParam)
Sets the value of the attributetslSequenceNumber.- Parameters:
tslSequenceNumberParam- The value for the attributetslSequenceNumber.
-
getTslType
public final java.net.URI getTslType()
Gets the value of the attributetslType.- Returns:
- the value of the attribute
tslType.
-
setTslType
public final void setTslType(java.net.URI tslTypeParam)
Sets the value of the attributetslType.- Parameters:
tslTypeParam- The value for the attributetslType.
-
getSchemeOperatorNames
public final java.util.Map<java.lang.String,java.util.List<java.lang.String>> getSchemeOperatorNames()
Gets the value of the attributeschemeOperatorNames.- Returns:
- the value of the attribute
schemeOperatorNames.
-
getSchemeOperatorNameInLanguage
public final java.util.List<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.
-
getSchemeOperatorAddress
public final Address getSchemeOperatorAddress()
Gets the value of the attributeschemeOperatorAddress.- Returns:
- the value of the attribute
schemeOperatorAddress.
-
setSchemeOperatorAddress
public final void setSchemeOperatorAddress(Address schemeOperatorAddressParam)
Sets the value of the attributeschemeOperatorAddress.- Parameters:
schemeOperatorAddressParam- The value for the attributeschemeOperatorAddress.
-
getSchemeNames
public final java.util.Map<java.lang.String,java.lang.String> getSchemeNames()
Gets the value of the attributeschemeNames.- Returns:
- the value of the attribute
schemeNames.
-
getSchemeName
public final java.lang.String getSchemeName(java.lang.String language)
Gets the scheme name for the specified language.- Parameters:
language- Language from which gets the scheme name.- Returns:
- Scheme name for the specified language, or
nullif not exists for that language.
-
addNewSchemeName
public final void addNewSchemeName(java.lang.String language, java.lang.String schemeName)Adds a new scheme name for the specified language.- Parameters:
language- language to which associate the new scheme name. If it isnull, then this method do nothing.schemeName- Scheme name.
-
setSchemeNames
public final void setSchemeNames(java.util.Map<java.lang.String,java.lang.String> schemeNamesParam)
Sets the value of the attributeschemeNames.- Parameters:
schemeNamesParam- The value for the attributeschemeNames.
-
isThereSomeSchemeName
public final boolean isThereSomeSchemeName()
Checks if there is at least one scheme name added.- Returns:
trueif there is, otherwisefalse.
-
getSchemeInformationURIs
public final java.util.Map<java.lang.String,java.util.List<java.net.URI>> getSchemeInformationURIs()
Gets the value of the attributeschemeInformationURIs.- Returns:
- the value of the attribute
schemeInformationURIs.
-
getSchemeInformationURIinLanguage
public final java.util.List<java.net.URI> getSchemeInformationURIinLanguage(java.lang.String language)
Gets the scheme information URI list for the specified language.- Parameters:
language- Language from which gets the scheme information URI.- Returns:
- Scheme information URI list for the specified language, or
nullif not exists for that language.
-
addNewSchemeInformationURI
public final void addNewSchemeInformationURI(java.lang.String language, java.net.URI schemeInformationURI)Adds a new scheme information URI for the specified language.- Parameters:
language- language to which associate the new scheme information URI. If it isnull, then this method do nothing.schemeInformationURI- Scheme information URI.
-
isThereSomeSchemeInformationURI
public final boolean isThereSomeSchemeInformationURI()
Checks if there is at least one scheme information URI.- Returns:
trueif there is, otherwisefalse.
-
getStatusDeterminationApproach
public final java.net.URI getStatusDeterminationApproach()
Gets the value of the attributestatusDeterminationApproach.- Returns:
- the value of the attribute
statusDeterminationApproach.
-
setStatusDeterminationApproach
public final void setStatusDeterminationApproach(java.net.URI statusDeterminationApproachParam)
Sets the value of the attributestatusDeterminationApproach.- Parameters:
statusDeterminationApproachParam- The value for the attributestatusDeterminationApproach.
-
getSchemeTypeCommunityRules
public final java.util.Map<java.lang.String,java.util.List<java.net.URI>> getSchemeTypeCommunityRules()
Gets the value of the attributeschemeTypeCommunityRules.- Returns:
- the value of the attribute
schemeTypeCommunityRules.
-
getSchemeTypeCommunityRulesInLanguage
public final java.util.List<java.net.URI> getSchemeTypeCommunityRulesInLanguage(java.lang.String language)
Gets the scheme type community rules for the specified language.- Parameters:
language- Language from which gets the scheme type community rules.- Returns:
- Scheme type community rules for the specified language, or
nullif not exists for that language.
-
addNewSchemeTypeCommunityRule
public final void addNewSchemeTypeCommunityRule(java.lang.String language, java.net.URI stcrUri)Adds a new scheme type community rule URI for the specified language.- Parameters:
language- language to which associate the new scheme type community rule URI. If it isnull, then this method do nothing.stcrUri- scheme type community rule URI.
-
isThereSomeSchemeTypeCommunityRule
public final boolean isThereSomeSchemeTypeCommunityRule()
Checks if there is at least one scheme type community rule.- Returns:
trueif there is, otherwisefalse.
-
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.
-
getPolicies
public final java.util.Map<java.lang.String,java.net.URI> getPolicies()
Gets the value of the attributepolicies.- Returns:
- the value of the attribute
policies.
-
getPolicyInLanguage
public final java.net.URI getPolicyInLanguage(java.lang.String language)
Gets the policy assigned to the input language.- Parameters:
language- language to search (ISO 639).- Returns:
- URI that represents the searched policy.
-
addNewPolicy
public final void addNewPolicy(java.lang.String language, java.net.URI policyUri)Adds a new scheme policy in a specific language.- Parameters:
language- Language to which add the policy.policyUri- scheme policy URI to add.
-
setPolicies
public final void setPolicies(java.util.Map<java.lang.String,java.net.URI> policiesParam)
Sets the value of the attributepolicies.- Parameters:
policiesParam- The value for the attributepolicies.
-
isThereSomePolicy
public final boolean isThereSomePolicy()
Checks if there is at least one scheme policy.- Returns:
trueif there is, otherwisefalse.
-
getLegalNotices
public final java.util.Map<java.lang.String,java.lang.String> getLegalNotices()
Gets the value of the attributelegalNotices.- Returns:
- the value of the attribute
legalNotices.
-
getLegalNoticeInLanguage
public final java.lang.String getLegalNoticeInLanguage(java.lang.String language)
Gets the notice from the input language.- Parameters:
language- Language to search (ISO 639).- Returns:
- Legal notice for the input language.
-
addNewLegalNotice
public final void addNewLegalNotice(java.lang.String language, java.lang.String legalNotice)Adds a new scheme legal notice in a specific language.- Parameters:
language- Language to which add the legal notice.legalNotice- legal notice to add.
-
setLegalNotices
public final void setLegalNotices(java.util.Map<java.lang.String,java.lang.String> legalNoticesParam)
Sets the value of the attributelegalNotices.- Parameters:
legalNoticesParam- The value for the attributelegalNotices.
-
isThereSomeLegalNotice
public final boolean isThereSomeLegalNotice()
Checks if there is at least one scheme legal notice.- Returns:
trueif there is, otherwisefalse.
-
getHistoricalPeriod
public final int getHistoricalPeriod()
Gets the value of the attributehistoricalPeriod.- Returns:
- the value of the attribute
historicalPeriod.
-
setHistoricalPeriod
public final void setHistoricalPeriod(int historicalPeriodParam)
Sets the value of the attributehistoricalPeriod.- Parameters:
historicalPeriodParam- The value for the attributehistoricalPeriod.
-
getPointersToOtherTSL
public final java.util.List<TSLPointer> getPointersToOtherTSL()
Gets the value of the attributepointersToOtherTSL.- Returns:
- the value of the attribute
pointersToOtherTSL.
-
addNewPointerToOtherTSL
public final void addNewPointerToOtherTSL(TSLPointer pointer)
Adds a new pointer to other TSL.- Parameters:
pointer- pointer to other TSL object representation.
-
setPointersToOtherTSL
public final void setPointersToOtherTSL(java.util.List<TSLPointer> pointersToOtherTSLParam)
Sets the value of the attributepointersToOtherTSL.- Parameters:
pointersToOtherTSLParam- The value for the attributepointersToOtherTSL.
-
isThereSomePointerToOtherTSL
public final boolean isThereSomePointerToOtherTSL()
Checks if there is at least one pointer to other TSL.- Returns:
trueif there is, otherwisefalse.
-
getListIssueDateTime
public final java.util.Date getListIssueDateTime()
Gets the value of the attributelistIssueDateTime.- Returns:
- the value of the attribute
listIssueDateTime.
-
setListIssueDateTime
public final void setListIssueDateTime(java.util.Date listIssueDateTimeParam)
Sets the value of the attributelistIssueDateTime.- Parameters:
listIssueDateTimeParam- The value for the attributelistIssueDateTime.
-
getNextUpdate
public final java.util.Date getNextUpdate()
Gets the value of the attributenextUpdate.- Returns:
- the value of the attribute
nextUpdate.
-
setNextUpdate
public final void setNextUpdate(java.util.Date nextUpdateParam)
Sets the value of the attributenextUpdate.- Parameters:
nextUpdateParam- The value for the attributenextUpdate.
-
getDistributionPoints
public final java.util.List<java.net.URI> getDistributionPoints()
Gets the value of the attributedistributionPoints.- Returns:
- the value of the attribute
distributionPoints.
-
addNewDistributionPoint
public final void addNewDistributionPoint(java.net.URI dpUri)
Adds a new distribution point.- Parameters:
dpUri- Distribution point to add.
-
setDistributionPoints
public final void setDistributionPoints(java.util.List<java.net.URI> distributionPointsParam)
Sets the value of the attributedistributionPoints.- Parameters:
distributionPointsParam- The value for the attributedistributionPoints.
-
isThereSomeDistributionPoint
public final boolean isThereSomeDistributionPoint()
Checks if there is at least one distribution point.- Returns:
trueif there is, otherwisefalse.
-
getSchemeInformationExtensions
public final java.util.List<IAnyTypeExtension> getSchemeInformationExtensions()
Gets the value of the attributeschemeInformationExtensions.- Returns:
- the value of the attribute
schemeInformationExtensions.
-
addNewSchemeInformationExtension
public final void addNewSchemeInformationExtension(IAnyTypeExtension extension)
Adds a new extension if it is notnull.- Parameters:
extension- extension to add.
-
isThereSomeSchemeInformationExtension
public final boolean isThereSomeSchemeInformationExtension()
Checks if there is at least one scheme information extension.- Returns:
trueif there is at least one scheme information extension, otherwisefalse.
-
-