Class NameValidator

  • All Implemented Interfaces:
    org.eclipse.core.databinding.validation.IValidator
    Direct Known Subclasses:
    AbstractProjectWizard.ObjectNameValidator

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

    Metadata objects name validator

    • Constructor Detail

      • NameValidator

        protected NameValidator()
        Creates new validator instance.
    • Method Detail

      • validate

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

        protected boolean check​(String name)
        Checks name.
        Parameters:
        name - the name, can be null
        Returns:
        true if name is valid, false otherwise
      • isValidSymbol

        protected boolean isValidSymbol​(char ch)
        Checks is non first name symbol is valid.
        Parameters:
        ch - the symbol
        Returns:
        true if symbol name is valid, false otherwise