Class CompositeCondition
java.lang.Object
eu.europa.esig.dss.tsl.dto.condition.CompositeCondition
- All Implemented Interfaces:
Condition
,Serializable
Condition resulting of the matchingCriteriaIndicator of other Conditions
- See Also:
-
Constructor Summary
ConstructorDescriptionThe default constructor for CriteriaListCondition.CompositeCondition
(Assert matchingCriteriaIndicator) Constructor for CriteriaListCondition. -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method adds a child condition.boolean
check
(CertificateToken certificateToken) Execute the composite condition of the given certificateReturns the list of child conditions.Returns the matching criteria indicatortoString()
Returns a string representation of the condition
-
Constructor Details
-
CompositeCondition
public CompositeCondition()The default constructor for CriteriaListCondition. All conditions must match -
CompositeCondition
Constructor for CriteriaListCondition.- Parameters:
matchingCriteriaIndicator
- matching criteria indicator: atLeastOne, all, none
-
-
Method Details
-
getChildren
-
addChild
This method adds a child condition. This allows to handle embedded conditions.- Parameters:
condition
- the condition to add in the composite
-
getMatchingCriteriaIndicator
Returns the matching criteria indicator- Returns:
- matching criteria indicator: atLeastOne, all, none
-
check
Execute the composite condition of the given certificate -
toString
-
toString
-