Package org.jabsorb.serializer

Examples of org.jabsorb.serializer.SerializerState


        if (source == null) {
            return null;
        }

        try {
            SerializerState state = new SerializerState();
            return serializer.unmarshall(state, clazz, source);
        } catch (Exception e) {
            //throw new TransformationException(e);
          return null;
        }
View Full Code Here


    public Object toJSON(Object source) throws Exception {
        if (source == null) {
            return org.json.JSONObject.NULL;
        }

        SerializerState state = new SerializerState();
        return serializer.marshall(state,null,source,new Integer(0));
    }
View Full Code Here

        if (source == null) {
            return null;
        }

        try {
            SerializerState state = new SerializerState();
            return serializer.unmarshall(state, context.getTargetDataType().getPhysical(), source);
        } catch (Exception e) {
            throw new TransformationException(e);
        }
View Full Code Here

        if (source == null) {
            return null;
        }

        try {
            SerializerState state = new SerializerState();
            return serializer.unmarshall(state, context.getTargetDataType().getPhysical(), source);
        } catch (Exception e) {
            throw new TransformationException(e);
        }
View Full Code Here

        if (source == null) {
            return null;
        }

        try {
            SerializerState state = new SerializerState();
            return serializer.unmarshall(state, context.getTargetDataType().getPhysical(), source);
        } catch (Exception e) {
            throw new TransformationException(e);
        }
View Full Code Here

    public Object toJSON(Object source) throws Exception {
        if (source == null) {
            return org.json.JSONObject.NULL;
        }

        SerializerState state = new SerializerState();
        return serializer.marshall(state, null, source, new Integer(0));
    }
View Full Code Here

        if (source == null) {
            return null;
        }

        try {
            SerializerState state = new SerializerState();
            return serializer.unmarshall(state, context.getTargetDataType().getPhysical(), source);
        } catch (Exception e) {
            throw new TransformationException(e);
        }
View Full Code Here

    public Object toJSON(Object source) throws Exception {
        if (source == null) {
            return org.json.JSONObject.NULL;
        }

        SerializerState state = new SerializerState();
        return serializer.marshall(state, null, source, new Integer(0));
    }
View Full Code Here

          cbc.postInvokeCallback(context[i], itsThis, method, returnObj);
        }
      }

      // Marshall the result
      SerializerState serializerState = new SerializerState();
      Object json = ser.marshall(serializerState, null, returnObj, "r");
      result = new JSONRPCResult(JSONRPCResult.CODE_SUCCESS, requestId,
        json, serializerState.getFixUps());

      // Handle exceptions creating exception results and
      // calling error callbacks
    }
    catch (UnmarshallException e)
View Full Code Here

    int i = 0, j = 0;
    try
    {
      for (; i < param.length; i++)
      {
        SerializerState serialiserState = new SerializerState();
        if (LocalArgController.isLocalArg(param[i]))
        {
          candidate.match[i] = ObjectMatch.OKAY;
        }
        else
View Full Code Here

TOP

Related Classes of org.jabsorb.serializer.SerializerState

Copyright © 2018 www.massapicom. 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.