/******************************************************************************* * Copyright (c) 2009 Jeff McAffer, Ed Merks and others. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v1.0 * which accompanies this distribution. The Eclipse Public License is available at * http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution License * is available at http://www.eclipse.org/org/documents/edl-v10.php. * * Contributors: * Jeff McAffer and Ed Merks - initial API and implementation *******************************************************************************/ package org.eclipse.examples.toast.backend.data.validation; import java.net.URI; import org.eclipse.examples.toast.backend.data.IAddress; /** * A sample validator interface for {@link org.eclipse.examples.toast.backend.data.IDriver}. * This doesn't really do anything, and it's not a real EMF artifact. * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. */ public interface DriverValidator { boolean validate(); boolean validateAddress(IAddress value); boolean validateFirstName(String value); boolean validateImage(URI value); boolean validateLastName(String value); boolean validateId(int value); }