blob: d30dd9ae1c6f1c58ddcd1af77afd622c74bd846a (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
/*******************************************************************************
* 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.analyzer;
import org.eclipse.wst.wsi.internal.analyzer.config.AnalyzerConfig;
import org.eclipse.wst.wsi.internal.analyzer.config.WSDLElement;
/**
* This class contains all of the information that is needed to process description test assertions. The infromation
* in this object will be derived from analyzer configuration information, UDDI entries, or the WSDL port element.
*
* @version 1.0.1
* @author Peter Brittenham (peterbr@us.ibm.com)
*/
public class ServiceReference
{
protected WSDLElement wsdlElement;
protected String wsdlLocation;
protected String serviceLocation;
/**
* Create service reference without references. All of them will be set later as test assertions are
* being processed.
*/
public ServiceReference()
{
}
/**
* Create service reference from entries specified in the analyzer config file. This information may include
* the information extracted from the wsdlElement, wsdlURI and serviceLocation elements.
* @param analyzerConfig an AnalyzerConfig object.
*/
public ServiceReference(AnalyzerConfig analyzerConfig)
{
this.wsdlElement = analyzerConfig.getWSDLElement();
this.wsdlLocation = analyzerConfig.getWSDLLocation();
this.serviceLocation = analyzerConfig.getServiceLocation();
}
/**
* Get the WSDL element where analysis should begin.
* @return he WSDL element where analysis should begin.
* @see #setWSDLElement
*/
public WSDLElement getWSDLElement()
{
return this.wsdlElement;
}
/**
* Set the WSDL element where analysis should begin.
* @param wsdlElement the WSDL element where analysis should begin.
* @see #getWSDLElement
*/
public void setWSDLElement(WSDLElement wsdlElement)
{
this.wsdlElement = wsdlElement;
}
/**
* Get WSDL document location.
* @return WSDL document location.
* @see #setWSDLLocation
*/
public String getWSDLLocation()
{
return this.wsdlLocation;
}
/**
* Set WSDL document location.
* @param wsdlLocation WSDL document location.
* @see #getWSDLLocation
*/
public void setWSDLLocation(String wsdlLocation)
{
this.wsdlLocation = wsdlLocation;
}
/**
* Get Web service location.
* @return Web service location.
* @see #setServiceLocation
*/
public String getServiceLocation()
{
return this.serviceLocation;
}
/**
* Set Web service location.
* @param serviceLocation eb service location.
* @see #getServiceLocation
*/
public void setServiceLocation(String serviceLocation)
{
this.serviceLocation = serviceLocation;
}
}
|