blob: 516c555e72ededb55817a910a1e73a7ebc7a70d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/*******************************************************************************
* 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.wsdl.validation.internal.eclipse;
/**
* An Eclipse WSDL validator. This validator is the default validator
* used in the validation framework. There is only a single instance of
* this validator. When created, this validator registers all extension
* URI resolvers.
*/
public class WSDLValidator extends org.eclipse.wst.wsdl.validation.internal.WSDLValidator
{
private static WSDLValidator instance = null;
/**
* The constructor registers all of the URI resolvers defined via the
* WSDL URI resolver extension point with the WSDL validator.
*
*/
protected WSDLValidator()
{
super();
URIResolverWrapper resolver = new URIResolverWrapper();
addURIResolver(resolver);
}
/**
* Get the one and only instance of this Eclipse WSDL validator.
*
* @return The one and only instance of this Eclipse WSDL validator.
*/
public static WSDLValidator getInstance()
{
if(instance == null)
{
instance = new WSDLValidator();
}
return instance;
}
}
|