Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.uberfire.properties.editor.model.validators;
 
 
 public class TextValidator implements PropertyFieldValidator {
 
     @Override
     public boolean validateObject value ) {
        if ( value.toString().length() > 8 ) {
            return true;
        }
        return false;
    }
    @Override
    public String getValidatorErrorMessage() {
        return "Invalid Text data.";
    }
New to GrepCode? Check out our FAQ X