Package com.fasterxml.jackson.databind

Examples of com.fasterxml.jackson.databind.JsonNode.textValue()


        JsonNode datasetNode = dataIterator.next();
       
        JsonNode descriptionNode = datasetNode.get("description");
        String description = null;
        if (descriptionNode != null) {
          description = descriptionNode.textValue();
        }
        JsonNode dataNode = datasetNode.get("data");
       
        if (dataNode == null || dataNode.size() == 0) {
          chartComponent.addChart(description, null, ExplorerApp.get().getI18nManager().getMessage(Messages.REPORTING_ERROR_NOT_ENOUGH_DATA));
View Full Code Here


    String type = dataNode.get("type").textValue();
   
    JsonNode xAxisNode = dataNode.get("xaxis");
    String xAxis = null;
    if (xAxisNode != null) {
      xAxis = xAxisNode.textValue();
    }
   
    JsonNode yAxisNode = dataNode.get("yaxis");
    String yAxis = null;
    if (yAxisNode != null) {
View Full Code Here

    }
   
    JsonNode yAxisNode = dataNode.get("yaxis");
    String yAxis = null;
    if (yAxisNode != null) {
      yAxis = yAxisNode.textValue();
    }
   
    Component chart = null;
    if (CHART_TYPE_BAR_CHART.equals(type)) {
     
View Full Code Here

        JsonNode ref = rawSchema.get("$ref");
        if (ref != null) {
            URL referencedSchemaLocation;
            try {
                referencedSchemaLocation = new URL(currentSchemaLocation, ref.textValue());
            } catch (MalformedURLException e) {
                throw new IllegalArgumentException("The schema reference is malformed", e);
            }
            scheduleSchemaForProcessing(referencedSchemaLocation);
            return new SchemaReference(cache, referencedSchemaLocation);
View Full Code Here

        SimpleTypeSchema result = new SimpleTypeSchema();
        result.setType(SimpleType.valueOf(rawSchema.get("type").asText().toUpperCase()));

        JsonNode pattern = rawSchema.get("pattern");
        if (pattern != null) {
            result.setPattern(Pattern.compile(pattern.textValue()));
        }

        JsonNode minLength = rawSchema.get("minLength");
        if (minLength != null) {
            result.setMinLength(minLength.intValue());
View Full Code Here

            result.setEnumeration(enumerationValues);
        }

        JsonNode format = rawSchema.get("format");
        if (format!= null) {
            result.setFormat(format.textValue());
        }
        return result;
    }

    private ArraySchema parseArraySchema(JsonNode rawSchema, URL schemaLocation) {
View Full Code Here

        for (final JsonNode node: testNode) {
            msgNode = node.get("message");
            msgData = node.get("msgData");
            msgParams = node.get("msgParams");
            msg = msgNode == null ? null
                : buildMessage(msgNode.textValue(), msgParams, msgData);
            list.add(new Object[]{ node.get("data"),
                node.get("valid").booleanValue(), msg, msgData });
        }

        return list.iterator();
View Full Code Here

        for (final JsonNode node: testData) {
            msgNode = node.get("message");
            msgData = node.get("msgData");
            msgParams = node.get("msgParams");
            msg = msgNode == null ? null
                : TestUtils.buildMessage(BUNDLE, msgNode.textValue(),
                    msgParams, msgData);
            list.add(new Object[]{ node.get("schema"), node.get("data"), msg,
                node.get("valid").booleanValue(), node.get("msgData") });
        }
        return list.iterator();
View Full Code Here

        for (final JsonNode node: testNode) {
            msgNode = node.get("message");
            msgData = node.get("msgData");
            msgParams = node.get("msgParams");
            msg = msgNode == null ? null
                : buildMessage(msgNode.textValue(), msgParams, msgData);
            list.add(new Object[]{ node.get("digest"), node.get("data"), msg,
                node.get("valid").booleanValue(), msgData });
        }

        return list.iterator();
View Full Code Here

    public void validate(final ProcessingReport report,
        final MessageBundle bundle, final FullData data)
        throws ProcessingException
    {
        final JsonNode instance = data.getInstance().getNode();
        final String ipaddr = instance.textValue();

        if (InetAddresses.isInetAddress(ipaddr) && InetAddresses
            .forString(ipaddr).getAddress().length == IPV6_LENGTH)
            return;
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.