001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041: package org.netbeans.modules.websvc.jaxrpc.project;
042:
043: import java.util.HashMap;
044: import java.util.Map;
045: import org.openide.util.NbBundle;
046:
047: /**
048: *
049: * @author rico
050: * Table containing wscompile options and corresponding description
051: */
052: public class WsCompileFeatures {
053:
054: static Map<String, String> featuresMap = null;
055:
056: /** Creates a new instance of WsCompileFeatures */
057: private WsCompileFeatures() {
058: }
059:
060: public static Map<String, String> getFeaturesMap() {
061: if (featuresMap == null) {
062: featuresMap = new HashMap<String, String>();
063: featuresMap.put("datahandleronly", NbBundle.getMessage(
064: WsCompileFeatures.class, "DESC_DATAHANDLERONLY"));
065: featuresMap.put("documentliteral", NbBundle.getMessage(
066: WsCompileFeatures.class, "DESC_DOCUMENTLITERAL"));
067: featuresMap.put("rpcliteral", NbBundle.getMessage(
068: WsCompileFeatures.class, "DESC_RPCLITERAL"));
069: featuresMap.put("explicitcontext", NbBundle.getMessage(
070: WsCompileFeatures.class, "DESC_EXPLICITCONTEXT"));
071: featuresMap.put("jaxbenumtype", NbBundle.getMessage(
072: WsCompileFeatures.class, "DESC_JAXBENUMTYPE"));
073: featuresMap.put("nodatabinding", NbBundle.getMessage(
074: WsCompileFeatures.class, "DESC_NODATABINDING"));
075: featuresMap.put("noencodedtypes", NbBundle.getMessage(
076: WsCompileFeatures.class, "DESC_NOENCODEDTYPES"));
077: featuresMap.put("nomultirefs", NbBundle.getMessage(
078: WsCompileFeatures.class, "DESC_NOMULTIREFS"));
079: featuresMap.put("norpcstructures", NbBundle.getMessage(
080: WsCompileFeatures.class, "DESC_NORPCSTRUCTURES"));
081: featuresMap.put("novalidation", NbBundle.getMessage(
082: WsCompileFeatures.class, "DESC_NOVALIDATION"));
083: featuresMap.put("resolveidref", NbBundle.getMessage(
084: WsCompileFeatures.class, "DESC_RESOLVEIDREF"));
085: featuresMap.put("searchschema", NbBundle.getMessage(
086: WsCompileFeatures.class, "DESC_SEARCHSCHEMA"));
087: featuresMap.put("serializeinterfaces", NbBundle
088: .getMessage(WsCompileFeatures.class,
089: "DESC_SERIALIZEINTERFACES"));
090: featuresMap.put("strict", NbBundle.getMessage(
091: WsCompileFeatures.class, "DESC_STRICT"));
092: featuresMap.put("useonewayoperations", NbBundle
093: .getMessage(WsCompileFeatures.class,
094: "DESC_USEONEWAYOPERATIONS"));
095: featuresMap.put("wsi", NbBundle.getMessage(
096: WsCompileFeatures.class, "DESC_WSI"));
097: featuresMap.put("unwrap", NbBundle.getMessage(
098: WsCompileFeatures.class, "DESC_UNWRAP"));
099: featuresMap.put("donotoverride", NbBundle.getMessage(
100: WsCompileFeatures.class, "DESC_DONOTOVERRIDE"));
101: featuresMap.put("donotunwrap", NbBundle.getMessage(
102: WsCompileFeatures.class, "DESC_DONOTUNWRAP"));
103: }
104: return featuresMap;
105: }
106: }
|