Examples of unmarshall()


Examples of org.purl.sword.atom.Accept.unmarshall()

               }
            }
            else if (isInstanceOf(element, Accept.elementName()) )
            {
               Accept accept = new Accept();
               SwordValidationInfo info = accept.unmarshall(element, validationProperties);
               accepts.add(accept);
               validationItems.add(info);
            }
            else if (isInstanceOf(element, SwordAcceptPackaging.elementName()))
            {
View Full Code Here

Examples of org.purl.sword.base.DepositResponse.unmarshall()

          || status.getCode() == HttpStatus.SC_CREATED) {
        messageBody = readResponse(httpResponse.getEntity().getContent());
        response = new DepositResponse(status.getCode());
        response.setLocation(httpResponse.getFirstHeader("Location").getValue());
        // added call for the status code.
        lastUnmarshallInfo = response.unmarshall(messageBody, new Properties());
      }
      else {
        messageBody = readResponse(httpResponse.getEntity().getContent());
        response = new DepositResponse(status.getCode());
        response.unmarshallErrorDocument(messageBody);
View Full Code Here

Examples of org.purl.sword.base.ServiceDocument.unmarshall()

      if (status.getCode() == HttpStatus.SC_OK) {
        String message = readResponse(response.getEntity().getContent());
        log.debug("returned message is: " + message);
        doc = new ServiceDocument();
        lastUnmarshallInfo = doc.unmarshall(message, properties);
      } else {
        throw new SWORDClientException(
            "Received error from service document request: "
                + status);
      }
View Full Code Here

Examples of org.sf.bee.commons.remoting.jrpc.serializer.ISerializer.unmarshall()

            throw new UnmarshallException("can't assign null primitive");
        }
        final Class jsonClass = json.getClass();
        final ISerializer s = this.getSerializer(clazz, jsonClass);
        if (s != null) {
            return s.unmarshall(state, clazz, json);
        }

        // As a last resort, we check if the object is in fact an instance of the
        // desired class. This will typically happen when the parameter is of
        // type java.lang.Object and the passed object is a String or an Integer
View Full Code Here

Examples of org.wapama.bpmn2.impl.Bpmn2JsonUnmarshaller.unmarshall()

    }
   
    @Test
    public void testManualTaskUnmarshalling() throws Exception {
        Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
        Definitions definitions = unmarshaller.unmarshall(getTestJsonFile("manualTask.json"));
        assertTrue(definitions.getRootElements().size() == 1);
        GlobalManualTask task = (GlobalManualTask) definitions.getRootElements().get(0);
        assertEquals("pull a lever", task.getName());
        definitions.eResource().save(System.out, Collections.emptyMap());
    }
View Full Code Here

Examples of palmed.io.IRecord.unmarshall()

        clear();
        do
        {
            final ICachable cachable = new Chunk( this );
            final IRecord record = factory_.createRecord( cachable );
            record.unmarshall( stream );
            elements_.addElement( cachable );
            records_.addElement( record );
            wake( cachable );
        }
        while( stream.available() > 0 );
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.