Example usage for com.google.gwt.regexp.shared MatchResult getInput

List of usage examples for com.google.gwt.regexp.shared MatchResult getInput

Introduction

In this page you can find the example usage for com.google.gwt.regexp.shared MatchResult getInput.

Prototype

public final String getInput() 

Source Link

Usage

From source file:com.agnie.common.util.client.validator.ConstraintRegularExpressions.java

License:Open Source License

public static boolean validateWhiteSpace(String str) {
    RegExp pattern = RegExp.compile(ConstraintRegularExpressions.NO_WHITE_SPACE_EXP);
    MatchResult mr = pattern.exec(str);
    if ((mr != null) && (mr.toString().equals(mr.getInput()))) {
        return true;
    } else {/*www .  j a v  a  2 s. c om*/
        return false;
    }
}