Examples of readValue()


Examples of org.codehaus.jackson.map.ObjectMapper.readValue()

        String type = tupleInput.readString();
        String json = tupleInput.readString();
        ObjectMapper mapper = new ObjectMapper();
        try
        {
            Map<String,Object> value = mapper.readValue(json, Map.class);
            ConfiguredObjectRecord configuredObject = new ConfiguredObjectRecord(_uuid, type, value);
            return configuredObject;
        }
        catch (IOException e)
        {
View Full Code Here

Examples of org.codehaus.jackson.map.ObjectReader.readValue()

    ObjectMapper jmxObjectMapper = new ObjectMapper();
    jmxObjectMapper.configure(DeserializationConfig.Feature.USE_ANNOTATIONS, false);
    ObjectReader jmxObjectReader = jmxObjectMapper.reader(JMXMetricHolder.class);
    JMXMetricHolder metricHolder = null;
    try {
      metricHolder = jmxObjectReader.readValue(jmxStream);
    } catch (IOException e) {
      logger.error(String.format("Malformed jmx data from %s. Error %s", jmxUrl, e.getMessage()));
    }

    Map<String, Map<String, Object>> categories = new HashMap<String, Map<String, Object>>();
View Full Code Here

Examples of org.drools.core.process.core.datatype.DataType.readValue()

            getWorkItemNode().setInMappings((Map<String, String>) value);
        } else if (RESULT_MAPPING.equals(id)) {
            getWorkItemNode().setOutMappings((Map<String, String>) value);
        } else if (id instanceof String && workParameterExists((String) id)) {
            DataType type = getWorkItemNode().getWork().getParameterDefinition((String) id).getType();
            getWorkItemNode().getWork().setParameter((String) id, type.readValue((String) value));
        } else {
            super.setPropertyValue(id, value);
        }
    }
}
View Full Code Here

Examples of org.drools.process.core.datatype.DataType.readValue()

            getWorkItemNode().setInMappings((Map<String, String>) value);
        } else if (RESULT_MAPPING.equals(id)) {
            getWorkItemNode().setOutMappings((Map<String, String>) value);
        } else if (id instanceof String && workParameterExists((String) id)) {
            DataType type = getWorkItemNode().getWork().getParameterDefinition((String) id).getType();
            getWorkItemNode().getWork().setParameter((String) id, type.readValue((String) value));
        } else {
            super.setPropertyValue(id, value);
        }
    }
}
View Full Code Here

Examples of org.h2.store.Data.readValue()

        Data data = Data.create(null, 1024);
        data.checkCapacity((int) v.getPrecision());
        data.writeValue(v);
        data.writeInt(123);
        data.reset();
        Value v2 = data.readValue();
        assertEquals(v.getType(), v2.getType());
        assertEquals(0, v.compareTo(v2, compareMode));
        assertEquals(123, data.readInt());
    }
View Full Code Here

Examples of org.h2.store.Data.readValue()

        trace(new String(page.getBytes()));
        page.reset();

        trace(page.readString());
        trace(page.readString());
        trace(page.readValue().getInt());
        trace(page.readValue().getString());
        trace("" + page.readValue().getFloat());
        trace("" + page.readValue().getDouble());
        trace(page.readValue().toString());
        page.reset();
View Full Code Here

Examples of org.h2.store.Data.readValue()

        page.reset();

        trace(page.readString());
        trace(page.readString());
        trace(page.readValue().getInt());
        trace(page.readValue().getString());
        trace("" + page.readValue().getFloat());
        trace("" + page.readValue().getDouble());
        trace(page.readValue().toString());
        page.reset();
View Full Code Here

Examples of org.h2.store.Data.readValue()

        trace(page.readString());
        trace(page.readString());
        trace(page.readValue().getInt());
        trace(page.readValue().getString());
        trace("" + page.readValue().getFloat());
        trace("" + page.readValue().getDouble());
        trace(page.readValue().toString());
        page.reset();

        page.writeInt(0);
View Full Code Here

Examples of org.h2.store.Data.readValue()

        trace(page.readString());
        trace(page.readString());
        trace(page.readValue().getInt());
        trace(page.readValue().getString());
        trace("" + page.readValue().getFloat());
        trace("" + page.readValue().getDouble());
        trace(page.readValue().toString());
        page.reset();

        page.writeInt(0);
        page.writeInt(Integer.MAX_VALUE);
View Full Code Here

Examples of org.h2.store.Data.readValue()

        trace(page.readString());
        trace(page.readValue().getInt());
        trace(page.readValue().getString());
        trace("" + page.readValue().getFloat());
        trace("" + page.readValue().getDouble());
        trace(page.readValue().toString());
        page.reset();

        page.writeInt(0);
        page.writeInt(Integer.MAX_VALUE);
        page.writeInt(Integer.MIN_VALUE);
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.