congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JaxbStringObjectPairArray.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.kie.remote.jaxb.gen.JaxbStringObjectPairArray
constructor

Best Java code snippets using org.kie.remote.jaxb.gen.JaxbStringObjectPairArray.<init> (Showing top 7 results out of 315)

origin: org.kie.remote/kie-remote-client

/**
 * Create an instance of {@link JaxbStringObjectPairArray }
 * 
 */
public JaxbStringObjectPairArray createJaxbStringObjectPairArray() {
  return new JaxbStringObjectPairArray();
}
origin: org.kie.remote/kie-remote-jaxb-gen

/**
 * Create an instance of {@link JaxbStringObjectPairArray }
 * 
 */
public JaxbStringObjectPairArray createJaxbStringObjectPairArray() {
  return new JaxbStringObjectPairArray();
}
origin: org.kie.remote/kie-remote-client

public static JaxbStringObjectPairArray convertMapToJaxbStringObjectPairArray( Map<String, Object> map ) {
  JaxbStringObjectPairArray arrayMap = new JaxbStringObjectPairArray();
  if( map == null || map.isEmpty() ) {
    return arrayMap;
  }
  List<JaxbStringObjectPair> items = arrayMap.getItems();
  for( Entry<String, Object> entry : map.entrySet() ) {
    JaxbStringObjectPair pair = new JaxbStringObjectPair();
    pair.setKey(entry.getKey());
    pair.setValue(entry.getValue());
    items.add(pair);
  }
  return arrayMap;
}

origin: org.kie.remote/kie-remote-services

spCmd.setProcessId("org.map.set.process");
Map<String, Object> origParams = new HashMap<String, Object>(paramArr.length);
JaxbStringObjectPairArray jaxbParams = new JaxbStringObjectPairArray();
spCmd.setParameter(jaxbParams);
for( int i = 0; i < paramArr.length; ++i ) {
origin: org.kie.remote/kie-remote-client

JaxbStringObjectPair inputObjectPair = new JaxbStringObjectPair("one", inputObject);
JaxbStringObjectPair inputObjectNullPair = new JaxbStringObjectPair("two", null);
JaxbStringObjectPairArray inputObjectArray = new JaxbStringObjectPairArray();
inputObjectArray.getItems().add(null);
inputObjectArray.getItems().add(inputObjectPair);
origin: org.kie.remote/kie-remote-client

  @Test
  public void utf8Test() throws Exception {
    String testStr =  "あばばば";
    StartProcessCommand cmd = new StartProcessCommand();
    JaxbStringObjectPairArray params = new JaxbStringObjectPairArray();
    cmd.setParameter(params);
    JaxbStringObjectPair pair = new JaxbStringObjectPair();
    params.getItems().add(pair);
    pair.setKey("myVar");
    pair.setValue(testStr);

    StartProcessCommand copy = testRoundTrip(cmd);
    String copyStr = (String) copy.getParameter().getItems().iterator().next().getValue();
    System.out.println( testStr + "/" + copyStr );
    assertEquals("UTF-8 characters not correctly encoded", testStr, copyStr);
  }
}
origin: org.kie.remote/kie-remote-services

@Test
public void addContentFromUserCmdTest() throws Exception {
  AddContentFromUserCommand cmd = new AddContentFromUserCommand();
  cmd.setTaskId(23l);
  cmd.setUserId("user");
  String key = "key";
  Object val = "val";
  cmd.setOutputContentMap(new JaxbStringObjectPairArray());
  cmd.getOutputContentMap().getItems().add(new JaxbStringObjectPair(key, val));
  String xmlStr = ClientJaxbSerializationProvider.newInstance().serialize(cmd);
  // @formatter:off
  org.jbpm.services.task.commands.AddContentFromUserCommand serverCmd
    = (org.jbpm.services.task.commands.AddContentFromUserCommand)
    ServerJaxbSerializationProvider.newInstance().deserialize(xmlStr);
  // @formatter:on
  assertEquals("cmd map key-val", val, serverCmd.getOutputContentMap().get(key));
}
org.kie.remote.jaxb.genJaxbStringObjectPairArray<init>

Popular methods of JaxbStringObjectPairArray

  • getItems
    Gets the value of the items property. This accessor method returns a reference to the live list, not

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Path (java.nio.file)
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • BoxLayout (javax.swing)
  • From CI to AI: The AI layer in your organization
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