blob: 8c747362b6ec81839763d30120a0ff87f12cb9dc [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2008 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
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.validation.internal.model;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.wst.validation.Validator;
import org.eclipse.wst.validation.internal.ValOperation;
import org.eclipse.wst.validation.internal.ValType;
/**
* This interface is implemented by objects that visit enabled validators.
* <p>
* Usage:
* <pre>
* class Visitor implements IValidatorVisitor {
* public void visit(Validator validator, IProgressMonitor monitor) {
* // your code here
* }
* }
* ValidatorManager vm = ValidatorManager.getDefault();
* vm.accept(new Visitor(), ...);
* </pre>
* </p>
* <p>
* Clients may implement this interface.
* </p>
*/
public interface IValidatorVisitor {
/**
* Visits the given validator.
* @param validator
*/
void visit(Validator validator, IProject project, ValType valType,
ValOperation operation, IProgressMonitor monitor);
}