public class StructureQueryConstraints extends Object
StructureQueryConstraint
implementations.Modifier and Type | Method and Description |
---|---|
static MessageSet |
validateArgumentCount(List<String> arguments,
int minArguments,
int maxArguments,
MessageSet messageSet)
Checks that the arguments list contains not less than
minArguments and not more than maxArguments elements. |
public static MessageSet validateArgumentCount(List<String> arguments, int minArguments, int maxArguments, MessageSet messageSet)
minArguments
and not more than maxArguments
elements.
Intended to be used in StructureQueryConstraint.validate(List)
.arguments
- constraint argumentsminArguments
- the minimum number of arguments the constraint can takemaxArguments
- the maximum number of arguments the constraint can takemessageSet
- the message set where the resulting error message will be addedCopyright © 2024 Tempo Software. All Rights Reserved.