/******************************************************************************* * Copyright (c) 2005, 2007 IBM Corporation 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 * *******************************************************************************/ package org.eclipse.dltk.validators.core.tests; import org.eclipse.dltk.validators.core.AbstractValidatorType; import org.eclipse.dltk.validators.core.ISourceModuleValidator; import org.eclipse.dltk.validators.core.IValidator; import org.eclipse.dltk.validators.core.ValidatorRuntime; public class SimpleValidatorType extends AbstractValidatorType { private static final String ID = "org.eclipse.dltk.validators.core.tests.simpleValidator"; public IValidator createValidator(String id) { return new SimpleValidator(id, this); } public String getID() { return ID; } public String getName() { return "Simple Test Validator"; } public String getNature() { return ValidatorRuntime.ANY_NATURE; } public boolean isBuiltin() { return false; } public boolean supports(Class validatorType) { return ISourceModuleValidator.class.equals(validatorType); } }