blob: 13e4614d920ba34f88fed09829c289150b2a79d3 [file] [log] [blame]
/*
* Copyright (C) 2005 db4objects Inc. http://www.db4o.com
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* db4objects - Initial API and implementation
*/
package org.eclipse.jface.internal.databinding.provisional.validation;
/**
* IntegerValidator. Validate String to Float data input
*/
public class String2FloatValidator extends String2FloatPrimitiveValidator {
/* (non-Javadoc)
* @see org.eclipse.jface.databinding.validator.IValidator#isValid(java.lang.Object)
*/
public ValidationError isValid(Object value) {
if ("".equals(value)) { //$NON-NLS-1$
return null;
}
return super.isValid(value);
}
}