From 7c3b0f4a2b3f07949311a6f3d41d14b28457b770 Mon Sep 17 00:00:00 2001 From: lauzond Date: Wed, 30 Mar 2005 13:55:13 +0000 Subject: Initial compilation of WSVT code base --- .../core/profile/validator/BaseValidator.java | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 bundles/org.eclipse.wst.wsi/wsicore/org/eclipse/wst/wsi/internal/core/profile/validator/BaseValidator.java (limited to 'bundles/org.eclipse.wst.wsi/wsicore/org/eclipse/wst/wsi/internal/core/profile/validator/BaseValidator.java') diff --git a/bundles/org.eclipse.wst.wsi/wsicore/org/eclipse/wst/wsi/internal/core/profile/validator/BaseValidator.java b/bundles/org.eclipse.wst.wsi/wsicore/org/eclipse/wst/wsi/internal/core/profile/validator/BaseValidator.java new file mode 100644 index 000000000..e661c1020 --- /dev/null +++ b/bundles/org.eclipse.wst.wsi/wsicore/org/eclipse/wst/wsi/internal/core/profile/validator/BaseValidator.java @@ -0,0 +1,51 @@ +/******************************************************************************* + * Copyright (c) 2002-2005 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 - Initial API and implementation + *******************************************************************************/ +package org.eclipse.wst.wsi.internal.core.profile.validator; + +import org.eclipse.wst.wsi.internal.core.WSIException; + +import org.w3c.dom.Document; + +/** + * The base interface for the profile validator. + * + * @version 1.0.1 + * @author Peter Brittenham (peterbr@us.ibm.com) + */ +public interface BaseValidator +{ + /** + * Set all test assertions for an artifact to missingInput. + * @throws WSIException if there is any problems while processing. + */ + public void setAllMissingInput() throws WSIException; + + /** + * Cleanup after processing all of the test assertions for an artifact. + * @throws WSIException if there is any problems during cleanup. + */ + public void cleanup() throws WSIException; + + /** + * Parse XML document and validate with a schema document. + * @param urlString XML document location. + * @param baseURI a base url to assist in locating the XML document. + * @param schema the related XML schema. + * @return XML document. + * @throws WSIException if there are any problems while parsing or + * validating the XML document. + */ + public Document parseXMLDocumentURL( + String urlString, + String baseURI, + String schema) + throws WSIException; +} -- cgit v1.2.3