blob: b5630e9dcfed70306ac179436a3354479cbc808c (
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
|
/*******************************************************************************
* Copyright (c) 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 Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.ws.internal.consumption.ui.wsrt;
import java.util.StringTokenizer;
import org.eclipse.core.runtime.IConfigurationElement;
public class WebServiceImpl {
private IConfigurationElement elem_;
private String id;
private String label;
private String[] resourceTypeMetadata;
private String[] extensionMetadata;
private String objectSelectionWidget;
public WebServiceImpl(IConfigurationElement elem_)
{
super();
this.elem_ = elem_;
}
public String[] getExtensionMetadata()
{
if (extensionMetadata==null)
{
String attr = elem_.getAttribute("extensionMetadata");
if (attr != null && attr.length()>0)
{
StringTokenizer st = new StringTokenizer(attr, " ");
int size = st.countTokens();
extensionMetadata = new String[size];
for (int i = 0; i < extensionMetadata.length; i++)
extensionMetadata[i] = st.nextToken();
}
}
return extensionMetadata;
}
public String getId()
{
if (id==null)
{
id = elem_.getAttribute("id");
}
return id;
}
public String getLabel()
{
if (label==null)
{
label = elem_.getAttribute("label");
}
return label;
}
public String[] getResourceTypeMetadata()
{
if (resourceTypeMetadata==null)
{
String attr = elem_.getAttribute("resourceTypeMetadata");
if (attr != null && attr.length()>0)
{
StringTokenizer st = new StringTokenizer(attr, " ");
int size = st.countTokens();
resourceTypeMetadata = new String[size];
for (int i = 0; i < resourceTypeMetadata.length; i++)
resourceTypeMetadata[i] = st.nextToken();
}
}
return resourceTypeMetadata;
}
public String getObjectSelectionWidget()
{
if (objectSelectionWidget==null)
{
objectSelectionWidget = elem_.getAttribute("objectSelectionWidget");
}
return objectSelectionWidget;
}
}
|