Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse Platform Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.jface.dialogs
Interface IInputValidator

public interface IInputValidator

The IInputValidator is the interface for simple validators.

See Also:
  `InputDialog`

Method Summary
`String` | `isValid(String newText)` Validates the given string.

Method Detail

### isValid

    public String isValid(String newText)

  Validates the given string. Returns an error message to display if the new text is invalid. Returns `null` if there is no error. Note that the empty string is not treated the same as `null`; it indicates an error state but with no message to display.

  Parameters:
    `newText` - the text to check for validity
  Returns:
    an error message or `null` if no error

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse Platform Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.