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

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

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

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-client

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

void internalAddPossiblyNullObject( Object inputObject, List<Object> objectList, Map<Object, Object> seenObjectsMap ) {
  if( inputObject != null ) {
    if( seenObjectsMap.put(inputObject, PRESENT) != null ) {
      return;
    }
    if( inputObject instanceof List )  {
      for( Object obj : (List<?>)inputObject ) {
        internalAddPossiblyNullObject(obj, objectList, seenObjectsMap);
      }
    } else if( inputObject instanceof JaxbStringObjectPairArray ) {
      for( JaxbStringObjectPair stringObjectPair : ((JaxbStringObjectPairArray) inputObject).getItems() ) {
        if( stringObjectPair != null ) {
          internalAddPossiblyNullObject(stringObjectPair.getValue(), objectList, seenObjectsMap);
        }
      }
    } else if( inputObject instanceof StringKeyObjectValueMap ) {
      for( Object obj : ((StringKeyObjectValueMap) inputObject).values() ) {
        internalAddPossiblyNullObject(obj, objectList, seenObjectsMap);
      }
    } else {
      objectList.add(inputObject);
    }
  }
}
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

  @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

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 ) {
  jaxbParams.getItems().add(new JaxbStringObjectPair(paramArr[i][0].toString(), paramArr[i][1]));
  origParams.put(paramArr[i][0].toString(), paramArr[i][1]);
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);
inputObjectArray.getItems().add(inputObjectNullPair);
objectList = new ArrayList<Object>();
taskServiceClient.addPossiblyNullObject(inputObjectArray, objectList);
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

Javadoc

Java class for jaxbStringObjectPairArray complex type.

The following schema fragment specifies the expected content contained within this class.

 
<complexType name="jaxbStringObjectPairArray"> 
<complexContent> 
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
<sequence> 
<element name="item" type="{}jaxbStringObjectPair" maxOccurs="unbounded" minOccurs="0"/> 
</sequence> 
</restriction> 
</complexContent> 
</complexType> 

Most used methods

  • <init>
  • 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)
  • Top plugins for WebStorm
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