Class ForbiddenNamesNameValidator

  • All Implemented Interfaces:

    public class ForbiddenNamesNameValidator
    extends Object
    implements org.eclipse.core.databinding.validation.IValidator

    Forbidden names name validator test that name is valid name and not in forbidden list

    • Constructor Detail

      • ForbiddenNamesNameValidator

        public ForbiddenNamesNameValidator​(Collection<String> forbiddenNames)
        Constructs a new instance of the validator using provided parameters.
        forbiddenNames - The set of name prohibited from use.
    • Method Detail

      • validate

        public org.eclipse.core.runtime.IStatus validate​(Object value)
        Specified by:
        validate in interface org.eclipse.core.databinding.validation.IValidator