blob: 839aa9d3e43d49d156694dace282c5ae58b3ff98 [file] [log] [blame]
/*
* Copyright (C) 2005, 2006 db4objects Inc. (http://www.db4o.com) and others.
*
* 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
* Boris Bokowski (IBM Corporation) - bug 118429
*/
package org.eclipse.core.databinding.validation;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
/**
* IntegerValidator. Validate String to Byte data input
*/
public class String2ByteValidator extends String2BytePrimitiveValidator {
public IStatus validate(Object value) {
if ("".equals(value)) { //$NON-NLS-1$
return Status.OK_STATUS;
}
return super.validate(value);
}
}