Package org.openhab.core.voice.text
Class ExpressionCardinality
java.lang.Object
org.openhab.core.voice.text.Expression
org.openhab.core.voice.text.ExpressionCardinality
Expression that successfully parses, if a given expression occurs or repeats with a specified cardinality. This class
is immutable.
- Author:
- Tilman Kamp - Initial contribution
-
Constructor Summary
ConstructorDescriptionExpressionCardinality
(Expression subExpression, boolean atLeastOne, boolean atMostOne) Constructs a new instance. -
Method Summary
-
Constructor Details
-
ExpressionCardinality
Constructs a new instance.- Parameters:
subExpression
- expression that could occur or repeatatLeastOne
- true, if expression should occur at least one timeatMostOne
- true, if expression should occur at most one time
-
-
Method Details