blob: 317d45c1a88e70daaea524f894d1d96a2cb0726b (
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
|
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
* yyyymmdd bug Email and other contact information
* -------- -------- -----------------------------------------------------------
* 20080318 223118 ericdp@ca.ibm.com - Eric D. Peters, metadata required in WS-I profiles to support editors & validators
*******************************************************************************/
package org.eclipse.wst.ws.internal.preferences;
import org.eclipse.core.runtime.QualifiedName;
import org.eclipse.wst.ws.internal.WstWSPluginMessages;
import org.eclipse.wst.ws.internal.plugin.WSPlugin;
public class PersistentWSIAPContext extends PersistentWSIContext
{
private static final String NON_WSI_AP_COMPLIANCE = "nonWSIAPCompliance";
public PersistentWSIAPContext ()
{
super();
non_wsi_compliance = NON_WSI_AP_COMPLIANCE;
name = new QualifiedName(WSPlugin.ID , non_wsi_compliance);
wsiWarning_ = WstWSPluginMessages.WSI_AP_WARNING;
wsiError_ = WstWSPluginMessages.WSI_AP_ERROR;
}
public String getPersistentWSICompliance ()
{
String property = getValueAsString(non_wsi_compliance);
// default to Warning if no init has been done from ini file
if (property == null || property.equals("")) {
setValue( non_wsi_compliance, WARN_NON_WSI);
return WARN_NON_WSI;
}
else
return property;
}
protected String getServicePolicyId()
{
return WSIServicePoliciesConstants.ServicePolicyID_AP10;
}
}
|