Interface Condition
- All Known Subinterfaces:
Condition.TagCondition
- All Known Implementing Classes:
ConditionFactory.ClassCondition,ConditionFactory.ExpressionCondition,ConditionFactory.IndexCondition,ConditionFactory.KeyCondition,ConditionFactory.KeyRegexpCondition,ConditionFactory.KeyValueCondition,ConditionFactory.KeyValueRegexpCondition,ConditionFactory.OpenEndPseudoClassCondition,ConditionFactory.PseudoClassCondition,ConditionFactory.RegexpKeyValueRegexpCondition,ConditionFactory.RoleCondition,ConditionFactory.SimpleKeyValueCondition
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This is a condition that needs to be fulfilled in order to apply a MapCSS style.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumContext, where the condition applies.static interfaceThis is a condition that can be converted to a tag -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanChecks if the condition applies in the givenTaggedelement.booleanChecks if the condition applies in the given MapCSSEnvironment.
-
Method Details
-
applies
Checks if the condition applies in the given MapCSSEnvironment.- Parameters:
e- The environment to check. May not benull.- Returns:
trueif the condition applies.
-
applies
Checks if the condition applies in the givenTaggedelement.- Parameters:
tagged- The tagged to check.- Returns:
trueif the condition applies.
-