Tabnine Logo
JaxbMap
Code IndexAdd Tabnine to your IDE (free)

How to use
JaxbMap
in
org.kie.server.api.model.type

Best Java code snippets using org.kie.server.api.model.type.JaxbMap (Showing top 3 results out of 315)

origin: kiegroup/droolsjbpm-integration

@Test
public void testImmutableMap() {
  Map<String, Object> entries = Collections.singletonMap(KEY, VALUE);
  // used to throw UnsupportedOperationException here
  JaxbMap jaxbMap = new JaxbMap(entries);
  assertThat(jaxbMap.getEntries()).containsKey(KEY);
}
origin: kiegroup/droolsjbpm-integration

public static Object wrapSkipPrimitives(Object object) {
  if (object == null) {
    return null;
  }
  if (object instanceof List) {
    return new JaxbList((List) object);
  } else if (object instanceof Map) {
    return new JaxbMap((Map) object);
  } else if (object instanceof Date) {
    return new JaxbDate((Date) object);
  } else if (object instanceof CommandScript) {
     for (KieServerCommand cmd : ((CommandScript) object).getCommands()) {
       if (cmd instanceof DescriptorCommand) {
         List<Object> arguments = new ArrayList<Object>();
         for (Object o : ((DescriptorCommand) cmd).getArguments()) {
           arguments.add(wrap(o));
         }
         ((DescriptorCommand) cmd).setArguments(arguments);
       }
     }
   }
  return object;
}
origin: kiegroup/droolsjbpm-integration

@Test
public void testEntryNotModified() {
  Map<String, Object> entries = new HashMap<>();
  entries.put(KEY, VALUE);
  JaxbMap jaxbMap = new JaxbMap(entries);
  assertThat(jaxbMap.getEntries()).containsKey(KEY);
  assertThat(entries).containsEntry(KEY, VALUE);
}
org.kie.server.api.model.typeJaxbMap

Most used methods

  • <init>
  • getEntries

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now