Class StructureQueryConstraints
Object
StructureQueryConstraints
Utility methods for
StructureQueryConstraint
implementations.-
Method Summary
Modifier and TypeMethodDescriptionstatic MessageSet
validateArgumentCount
(List<String> arguments, int minArguments, int maxArguments, MessageSet messageSet) Checks that the arguments list contains not less thanminArguments
and not more thanmaxArguments
elements.
-
Method Details
-
validateArgumentCount
public static MessageSet validateArgumentCount(List<String> arguments, int minArguments, int maxArguments, MessageSet messageSet) Checks that the arguments list contains not less thanminArguments
and not more thanmaxArguments
elements. Intended to be used inStructureQueryConstraint.validate(List)
.- Parameters:
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 added- Returns:
- the specified message set
-