01: package org.objectweb.celtix.tools.utils;
02:
03: import java.util.*;
04:
05: public final class SOAPBindingUtil {
06: private static Map<String, String> bindingMap = new HashMap<String, String>();
07:
08: static {
09: bindingMap.put("RPC", "SOAPBinding.Style.RPC");
10: bindingMap.put("DOCUMENT", "SOAPBinding.Style.DOCUMENT");
11: bindingMap.put("LITERAL", "SOAPBinding.Use.LITERAL");
12: bindingMap.put("ENCODED", "SOAPBinding.Use.ENCODED");
13: bindingMap.put("BARE", "SOAPBinding.ParameterStyle.BARE");
14: bindingMap.put("WRAPPED", "SOAPBinding.ParameterStyle.WRAPPED");
15: }
16:
17: private SOAPBindingUtil() {
18: }
19:
20: public static String getBindingAnnotation(String key) {
21: return bindingMap.get(key.toUpperCase());
22: }
23: }
|