diff options
Diffstat (limited to 'bundles/org.eclipse.wst.xsd.ui/src-validation/org/eclipse/wst/xsd/ui/internal/validation/XSDValidator.java')
-rw-r--r-- | bundles/org.eclipse.wst.xsd.ui/src-validation/org/eclipse/wst/xsd/ui/internal/validation/XSDValidator.java | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-validation/org/eclipse/wst/xsd/ui/internal/validation/XSDValidator.java b/bundles/org.eclipse.wst.xsd.ui/src-validation/org/eclipse/wst/xsd/ui/internal/validation/XSDValidator.java deleted file mode 100644 index 899f21d75d..0000000000 --- a/bundles/org.eclipse.wst.xsd.ui/src-validation/org/eclipse/wst/xsd/ui/internal/validation/XSDValidator.java +++ /dev/null @@ -1,66 +0,0 @@ -/******************************************************************************* - * 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.xsd.ui.internal.validation; - -import java.io.InputStream; - -import org.eclipse.wst.common.uriresolver.internal.provisional.URIResolverPlugin; -import org.eclipse.wst.xml.core.internal.validation.core.ValidationReport; - - -/** - * An XSD validator specific to Eclipse. This validator will wrap the internal - * XSD validator an provide automatic URI resolver support. - * Using this class is equivalent to using the internal XSD validator and registering - * the URI resolver. - */ -public class XSDValidator -{ - private static XSDValidator instance = null; - private org.eclipse.wst.xsd.core.internal.validation.XSDValidator validator = null; - - /** - * Return the one and only instance of the XSD validator. The validator - * can be reused and cannot be customized so there should only be one instance of it. - * - * @return The one and only instance of the XSD validator. - */ - public static XSDValidator getInstance() - { - if(instance == null) - { - instance = new XSDValidator(); - } - return instance; - } - /** - * Constructor. Create the XSD validator and set the URI resolver. - */ - protected XSDValidator() - { - validator = new org.eclipse.wst.xsd.core.internal.validation.XSDValidator(); - validator.setURIResolver(URIResolverPlugin.createResolver()); - } - /** - * Validate the file at the given URI. - * - * @param uri The URI of the file to validate. - */ - /*public ValidationReport validate(String uri) - { - return validator.validate(uri); - }*/ - public ValidationReport validate(String uri, InputStream inputStream) - { - return validator.validate(uri, inputStream); - } -} |