blob: 7b6c47819dc75289ba7e196a55efaac6e1a0484a [file] [log] [blame]
/*******************************************************************************
* 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 java.io.IOException;
import org.eclipse.dltk.validators.core.AbstractValidatorType;
import org.eclipse.dltk.validators.core.IValidator;
import org.w3c.dom.Element;
public class SimpleValidatorType extends AbstractValidatorType {
public final String ID = "org.eclipse.dltk.validators.core.tests.simpleValidator";
public IValidator createValidator(String id) {
SimpleValidator simpleValidator = new SimpleValidator(id, this);
validators.put(id, simpleValidator);
return simpleValidator;
}
public IValidator createValidatorFrom(String id, Element validatorElement) throws IOException {
SimpleValidator simpleValidator = new SimpleValidator(id, validatorElement, this);
validators.put(id, simpleValidator);
return simpleValidator;
}
public String getID() {
return ID;
}
public String getName() {
return "Simple Test Validator";
}
public String getNature() {
return "#";
}
public boolean isConfigurable() {
return true;
}
public boolean isBuiltin() {
return false;
}
}