isValid

public boolean isValid(String text)

Check whether the given text is valid.

Return

True if the string contains only defined characters, false otherwise.

Parameters

text

The text.