Examples of unmarshall()


Examples of org.drools.marshalling.impl.DefaultMarshaller.unmarshall()

       
        // Deserialize object
        StatefulKnowledgeSession ksession2;
        {
            ByteArrayInputStream bais = new ByteArrayInputStream( b1 );
            ksession2 = marshaller.unmarshall( bais,
                    new SessionConfiguration(),
                    ksession.getEnvironment());
            bais.close();
        }
       
View Full Code Here

Examples of org.drools.marshalling.impl.ProtobufMarshaller.unmarshall()

       
        // Deserialize object
        StatefulKnowledgeSession ksession2;
        {
            ByteArrayInputStream bais = new ByteArrayInputStream( b1 );
            ksession2 = marshaller.unmarshall( bais,
                    new SessionConfiguration(),
                    ksession.getEnvironment());
            bais.close();
        }
       
View Full Code Here

Examples of org.eclipse.bpel.model.extensions.BPELActivityDeserializer.unmarshall()

      QName qname = new QName(namespace, localName);
      BPELActivityDeserializer deserializer = extensionRegistry.getActivityDeserializer(qname);
      if (deserializer != null) {
        // Deserialize the DOM element and return the new Activity
        Map nsMap = getAllNamespacesForElement((Element)child);
        Activity activity = deserializer.unmarshall(qname,child,process,nsMap,extensionRegistry,resource.getURI(), this);
        // Now let's do the standard attributes and elements
        setStandardAttributes((Element)child, activity);
        setStandardElements((Element)child, activity);
       
        // Don't do extensibility because extensionActivity is not extensible.
View Full Code Here

Examples of org.eclipse.bpel.model.extensions.BPELExtensionDeserializer.unmarshall()

          if (deserializer != null && !(deserializer instanceof BPELUnknownExtensionDeserializer)) {
            // Deserialize the DOM element and add the new Extensibility element to the parent
            // ExtensibleElement
            try {
              Map nsMap = getAllNamespacesForElement(serviceRefElement);
              ExtensibilityElement extensibilityElement=deserializer.unmarshall(ExtensibleElement.class,qname,childElement,process,nsMap,extensionRegistry,resource.getURI());
              serviceRef.setValue(extensibilityElement);
            } catch (WSDLException e) {
              throw new WrappedException(e);
            }
          } else {
View Full Code Here

Examples of org.eclipse.bpel.model.extensions.ServiceReferenceDeserializer.unmarshall()

              throw new WrappedException(e);
            }
          } else {
            ServiceReferenceDeserializer referenceDeserializer = extensionRegistry.getServiceReferenceDeserializer(serviceRef.getReferenceScheme());
            if (referenceDeserializer != null) {
              Object serviceReference = referenceDeserializer.unmarshall(childElement, process);
              serviceRef.setValue(serviceReference);
            }
          }
        }
      } else {
View Full Code Here

Examples of org.geotools.caching.util.SimpleFeatureMarshaller.unmarshall()

        byte[] ba = baos.toByteArray();
        baos.close();

        ByteArrayInputStream bais = new ByteArrayInputStream(ba);
        ObjectInputStream ois = new ObjectInputStream(bais);
        Feature newf = m.unmarshall(ois);
        bais.close();
        assertTrue(f.equals(newf));
    }

    /** Same as testMarshall, but uses complex representation of DefaultFeature.
View Full Code Here

Examples of org.jabsorb.serializer.impl.BeanSerializer.unmarshall()

      String javaClassName = jso.getString("javaClass");
      Class javaClass = Class.forName(javaClassName);

      BeanSerializer beanSerializer = new BeanSerializer();
      beanSerializer.setOwner(ser);
      Object obj = beanSerializer.unmarshall(state, javaClass, jso);
      state.setSerialized(o, obj);
      return obj;
    }
    catch (Exception e) {
      throw new UnmarshallException("Failed to unmarshall EO.", e);
View Full Code Here

Examples of org.jboss.aerogear.controller.router.Consumer.unmarshall()

            final Map<String, Consumer> consumers) {
        final Set<String> mediaTypes = routeContext.getRoute().consumes();
        for (String mediaType : mediaTypes) {
            final Consumer consumer = consumers.get(mediaType);
            if (consumer != null) {
                return consumer.unmarshall(routeContext.getRequest(), parameter.getType());
            }
        }
        throw ExceptionBundle.MESSAGES.noConsumerForMediaType(parameter, consumers.values(), mediaTypes);
    }
View Full Code Here

Examples of org.jboss.as.console.mbui.marshall.DialogXML.unmarshall()

        try {
            DialogXML parser = new DialogXML();

            // validation
            Dialog dialog = parser.unmarshall(xml);

            final Document document = parser.marshall(dialog);

            vfs.save(selectedDialog, ModelEditor.formatXml(document.toString()), new SimpleCallback<Boolean>() {
                @Override
View Full Code Here

Examples of org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.unmarshall()

    }
   
    @Test
    public void testSimpleDefinitionsUnmarshalling() throws Exception {
        Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
        Definitions definitions = ((Definitions) unmarshaller.unmarshall(getTestJsonFile("empty.json"), "").getContents().get(0));
        assertEquals("<![CDATA[my doc]]>", definitions.getDocumentation().iterator().next().getText());
        assertEquals("http://www.w3.org/1999/XPath", definitions.getExpressionLanguage());
        assertEquals("http://www.omg.org/bpmn20", definitions.getTargetNamespace());
        assertEquals("http://www.w3.org/2001/XMLSchema", definitions.getTypeLanguage());
        assertTrue(definitions.getRootElements().size() == 1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.