Package eu.europa.esig.dss.tsl.parsing
Class AbstractParsingTask<T extends AbstractParsingResult>
java.lang.Object
eu.europa.esig.dss.tsl.parsing.AbstractParsingTask<T>
- Type Parameters:
T
- implementation of a corresponding parsing task (TL/LOTL)
- All Implemented Interfaces:
Supplier<T>
- Direct Known Subclasses:
LOTLParsingTask
,TLParsingTask
public abstract class AbstractParsingTask<T extends AbstractParsingResult>
extends Object
implements Supplier<T>
Abstract class to parse a LOTL/TL
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractParsingTask
(DSSDocument document) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
commonParseSchemeInformation
(AbstractParsingResult result, TSLSchemeInformationType schemeInformation) Extracts the common valuesprotected TrustedListFacade
This method loads aTrustedListFacade
protected TrustStatusListType
Gets theTrustStatusListType
protected void
verifyTLVersionConformity
(AbstractParsingResult result, Integer tlVersion, List<Integer> tlVersions) Verifies the structure conformity of the Trusted List corresponding to its schema version
-
Constructor Details
-
AbstractParsingTask
Default constructor- Parameters:
document
-DSSDocument
-
-
Method Details
-
getJAXBObject
Gets theTrustStatusListType
- Returns:
TrustStatusListType
-
createTrustedListFacade
This method loads aTrustedListFacade
- Returns:
TrustedListFacade
-
commonParseSchemeInformation
protected void commonParseSchemeInformation(AbstractParsingResult result, TSLSchemeInformationType schemeInformation) Extracts the common values- Parameters:
result
-AbstractParsingResult
schemeInformation
-TSLSchemeInformationType
-
verifyTLVersionConformity
protected void verifyTLVersionConformity(AbstractParsingResult result, Integer tlVersion, List<Integer> tlVersions) Verifies the structure conformity of the Trusted List corresponding to its schema version- Parameters:
result
-AbstractParsingResult
tlVersion
-Integer
TL version to verify againsttlVersions
- a list ofInteger
s representing a list of TL versions to be supported and validated
-