Class CompositeCondition
java.lang.Object
eu.europa.esig.dss.tsl.dto.condition.CompositeCondition
- All Implemented Interfaces:
Condition
,Serializable
public class CompositeCondition extends Object implements Condition
Condition resulting of the matchingCriteriaIndicator of other Conditions
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description CompositeCondition()
The default constructor for CriteriaListCondition.CompositeCondition(Assert matchingCriteriaIndicator)
Constructor for CriteriaListCondition. -
Method Summary
Modifier and Type Method Description void
addChild(Condition condition)
This method adds a child condition.boolean
check(CertificateToken certificateToken)
Execute the composite condition of the given certificateList<Condition>
getChildren()
Returns the list of child conditions.Assert
getMatchingCriteriaIndicator()
Returns the matching criteria indicatorString
toString()
String
toString(String indent)
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
Returns the list of child conditions.- Returns:
- an unmodifiable list, possibly empty; never
null
-
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
Description copied from interface:Condition
Returns a string representation of the condition -
toString
-