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 voidaddChild(Condition condition)This method adds a child condition.booleancheck(CertificateToken certificateToken)Execute the composite condition of the given certificateList<Condition>getChildren()Returns the list of child conditions.AssertgetMatchingCriteriaIndicator()Returns the matching criteria indicatorStringtoString()StringtoString(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:ConditionReturns a string representation of the condition -
toString
-