Class NameValidator
- java.lang.Object
-
- com._1c.g5.v8.dt.common.databinding.validation.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
-
-
Field Summary
Fields Modifier and Type Field Description static NameValidator
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description protected
NameValidator()
Creates new validator instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
check(String name)
Checks name.protected boolean
isValidSymbol(char ch)
Checks is non first name symbol is valid.org.eclipse.core.runtime.IStatus
validate(Object value)
-
-
-
Field Detail
-
INSTANCE
public static final NameValidator INSTANCE
-
-
Method Detail
-
validate
public org.eclipse.core.runtime.IStatus validate(Object value)
- Specified by:
validate
in interfaceorg.eclipse.core.databinding.validation.IValidator
-
check
protected boolean check(String name)
Checks name.- Parameters:
name
- the name, can benull
- 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
-
-