blob: 985e3dd627cf6f46ace25729b411244abf4d4fa5 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2004 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.xml.ui.internal.validation;
import org.eclipse.wst.validation.internal.provisional.ValidationFactory;
import org.eclipse.wst.validation.internal.provisional.core.IValidator;
import org.eclipse.wst.xml.ui.internal.Logger;
/**
* @author Mark Hutchinson
*
*/
public class DelegatingSourceValidatorForXML extends DelegatingSourceValidator {
private final static String VALIDATOR_CLASS = "org.eclipse.wst.xml.ui.internal.validation.Validator"; //$NON-NLS-1$
public DelegatingSourceValidatorForXML() {
super();
}
protected IValidator getDelegateValidator() {
IValidator result = null;
try {
result = ValidationFactory.instance.getValidator(VALIDATOR_CLASS);
}
catch (InstantiationException e) {
Logger.logException(e);
}
return result;
}
}