Class StructureQueryConstraints

Object
StructureQueryConstraints

public class StructureQueryConstraints extends Object
Utility methods for StructureQueryConstraint implementations.
  • Method Details

    • validateArgumentCount

      public 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. Intended to be used in StructureQueryConstraint.validate(List).
      Parameters:
      arguments - constraint arguments
      minArguments - the minimum number of arguments the constraint can take
      maxArguments - the maximum number of arguments the constraint can take
      messageSet - the message set where the resulting error message will be added
      Returns:
      the specified message set