public abstract class ChainItem<T extends eu.europa.esig.dss.jaxb.detailedreport.XmlConstraintsConclusion> extends Object
Chain class.
That follows the design pattern "chain of responsibility".
Depending of the Level in LevelConstraint the Chain will continue/stop the current treatment. The
ChainItem is a validation
constraint which allows to collect information, warnings, errors,...Chain| Modifier | Constructor and Description |
|---|---|
protected |
ChainItem(T result,
eu.europa.esig.jaxb.policy.LevelConstraint constraint)
Common constructor
|
protected |
ChainItem(T result,
eu.europa.esig.jaxb.policy.LevelConstraint constraint,
String bbbId)
Specific constructor for Basic Building Blocks validation
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
This method allows to execute the chain of responsibility.
|
protected String |
getAdditionalInfo() |
protected abstract MessageTag |
getErrorMessageTag() |
protected abstract eu.europa.esig.dss.validation.policy.rules.Indication |
getFailedIndicationForConclusion() |
protected abstract eu.europa.esig.dss.validation.policy.rules.SubIndication |
getFailedSubIndicationForConclusion() |
protected abstract MessageTag |
getMessageTag() |
protected List<eu.europa.esig.dss.jaxb.detailedreport.XmlName> |
getPreviousErrors() |
protected eu.europa.esig.dss.validation.policy.rules.Indication |
getSuccessIndication() |
protected eu.europa.esig.dss.validation.policy.rules.SubIndication |
getSuccessSubIndication() |
protected boolean |
isAcceptableConclusion(eu.europa.esig.dss.jaxb.detailedreport.XmlConclusion conclusion) |
protected boolean |
isIndeterminateConclusion(eu.europa.esig.dss.jaxb.detailedreport.XmlConclusion conclusion) |
protected boolean |
isInvalidConclusion(eu.europa.esig.dss.jaxb.detailedreport.XmlConclusion conclusion) |
protected boolean |
isValid(eu.europa.esig.dss.jaxb.detailedreport.XmlConstraintsConclusion constraintConclusion) |
protected boolean |
isValidConclusion(eu.europa.esig.dss.jaxb.detailedreport.XmlConclusion conclusion) |
protected abstract boolean |
process() |
ChainItem<T> |
setNextItem(ChainItem<T> nextItem)
This method allows to build the chain of responsibility
|
protected ChainItem(T result, eu.europa.esig.jaxb.policy.LevelConstraint constraint)
result - the Chain object parent of this objectconstraint - the LevelConstraint to follow to execute this ChainItemprotected ChainItem(T result, eu.europa.esig.jaxb.policy.LevelConstraint constraint, String bbbId)
result - the Chain object parent of this objectconstraint - the LevelConstraint to follow to execute this ChainItembbbId - the XmlBasicBuildingBlocks's idpublic ChainItem<T> setNextItem(ChainItem<T> nextItem)
nextItem - the next ChainItem to call if this one succeedpublic void execute()
Level.FAIL and not valid process.protected abstract boolean process()
protected abstract MessageTag getMessageTag()
protected abstract MessageTag getErrorMessageTag()
protected List<eu.europa.esig.dss.jaxb.detailedreport.XmlName> getPreviousErrors()
protected abstract eu.europa.esig.dss.validation.policy.rules.Indication getFailedIndicationForConclusion()
protected abstract eu.europa.esig.dss.validation.policy.rules.SubIndication getFailedSubIndicationForConclusion()
protected String getAdditionalInfo()
protected eu.europa.esig.dss.validation.policy.rules.Indication getSuccessIndication()
protected eu.europa.esig.dss.validation.policy.rules.SubIndication getSuccessSubIndication()
protected boolean isValid(eu.europa.esig.dss.jaxb.detailedreport.XmlConstraintsConclusion constraintConclusion)
protected boolean isValidConclusion(eu.europa.esig.dss.jaxb.detailedreport.XmlConclusion conclusion)
protected boolean isInvalidConclusion(eu.europa.esig.dss.jaxb.detailedreport.XmlConclusion conclusion)
protected boolean isIndeterminateConclusion(eu.europa.esig.dss.jaxb.detailedreport.XmlConclusion conclusion)
protected boolean isAcceptableConclusion(eu.europa.esig.dss.jaxb.detailedreport.XmlConclusion conclusion)
Copyright © 2018. All rights reserved.