Interface IAllowedValuesConstraint

    • Method Detail

      • getAllowedValue

        @Nullable
        default IAllowedValue getAllowedValue​(String name)
        Get a specific allowed value by name, if it is defined for this constraint.
        Parameters:
        name - the value name
        Returns:
        the allowed value or null if the value is not defined
      • isAllowedOther

        boolean isAllowedOther()
        Determines if this allowed value constraint is open-ended (true) or closed. If "open-ended", the constraint allows the target's value to by any additional unspecified value. If "closed", the constraint requries the target's value to be one of the specified values.
        Returns:
        true if the constraint is "open-ended", or false otherwise