Examples of textValue()


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

    @Override
    public CoinbaseButtonStyle deserialize(final JsonParser jsonParser, final DeserializationContext ctxt) throws IOException, JsonProcessingException {

      final ObjectCodec oc = jsonParser.getCodec();
      final JsonNode node = oc.readTree(jsonParser);
      final String jsonString = node.textValue();
      return FROM_STRING_HELPER.fromJsonString(jsonString);
    }
  }
}
View Full Code Here

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

    @Override
    public CoinbaseTransferType deserialize(final JsonParser jsonParser, final DeserializationContext ctxt) throws IOException, JsonProcessingException {

      final ObjectCodec oc = jsonParser.getCodec();
      final JsonNode node = oc.readTree(jsonParser);
      final String jsonString = node.textValue();
      return FROM_STRING_HELPER.fromJsonString(jsonString);
    }
  }
}
View Full Code Here

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

    @Override
    public Set<KrakenOrderFlags> deserialize(JsonParser jsonParser, DeserializationContext ctxt) throws IOException, JsonProcessingException {

      ObjectCodec oc = jsonParser.getCodec();
      JsonNode node = oc.readTree(jsonParser);
      String orderFlagsString = node.textValue();
      Set<KrakenOrderFlags> orderFlags = EnumSet.noneOf(KrakenOrderFlags.class);
      if (!orderFlagsString.isEmpty()) {
        for (String orderFlag : orderFlagsString.split(","))
          orderFlags.add(fromString(orderFlag));
      }
View Full Code Here

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

    @Override
    public KrakenType deserialize(JsonParser jsonParser, DeserializationContext ctxt) throws IOException, JsonProcessingException {

      ObjectCodec oc = jsonParser.getCodec();
      JsonNode node = oc.readTree(jsonParser);
      String typeString = node.textValue();
      return fromString(typeString);
    }
  }
}
View Full Code Here

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

            for (JsonNode jsonNode : audNode) {
                if (audience.equals(jsonNode.textValue()))
                    return;
            }
        } else if (audNode.isTextual()) {
            if (audience.equals(audNode.textValue()))
                return;
        }
        throw new IllegalStateException("jwt audience invalid");
    }
View Full Code Here

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

           
        } else if (node.isLong()) {
            return valueMatcher.matches(node.longValue());
           
        } else if (node.isTextual()) {
            return valueMatcher.matches(node.textValue());
           
        } else if (node.isBoolean()) {
            return valueMatcher.matches(node.booleanValue());
           
        } else if (node.isDouble()) {
View Full Code Here

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

        while (nodeIterator.hasNext()) {
           
            JsonNode currentNode = nodeIterator.next();
           
            if (nodeCount == position) {
                return matcher.matches(currentNode.textValue());
            }
           
            nodeCount++;
           
        }
View Full Code Here

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

    @Override
    public String deserializeString(JsonReadGenericRecord record, String fieldName) {
        JsonNode node = record.getNode().isTextual() ? record.getNode() : getJsonNode(record, fieldName);
        if (node == null)
            return null;
        return node.textValue();
    }

    /**
     * @deprecated use instead deserializeObject(JsonReadGenericRecord rec, String fieldName, Class<T> clazz);
     */
 
View Full Code Here

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

            case NUMBER:
                return fieldNode.numberValue();
            case STRING:
                try {
                    return NumberFormat.getInstance(Locale.getDefault()).parse(
                        fieldNode.textValue());
                } catch (final ParseException e) {
                    throw new DNSAPIClientJsonMappingException(
                            DNSAPIClientJsonMappingExceptionCode.invalidFieldValue, e,
                            fieldName, getTextualBeanType(), e.getMessage());
                }
View Full Code Here

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

  public InetAddress getNodeAddressValue(final ObjectNode recordNode,
      final String fieldName) {
    final JsonNode addressNode = findFieldNode(recordNode, fieldName);
    try {
      if (addressNode.textValue() != null) {
        return getAddressFromString(addressNode.textValue());
      } else {
        return null;
      }
    } catch (final Throwable e) {
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.