blob: 8824ebea0ddedfe97db7d36d89a2b83dead684c6 [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 Short data input
*/
public class String2ShortValidator extends String2ShortPrimitiveValidator {
/* (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);
}
}