Examples of fields()


Examples of aQute.lib.struct.fields()

        return;

      if (rover instanceof struct) {
        struct struct = (struct) rover;

        for (Field f : struct.fields()) {
          Object o = f.get(struct);

          if (o == null)
            continue;
View Full Code Here

Examples of aQute.struct.fields()

        return;

      if (rover instanceof struct) {
        struct struct = (struct) rover;

        for (Field f : struct.fields()) {
          Object o = f.get(struct);

          if (o == null)
            continue;
View Full Code Here

Examples of aQute.struct.struct.fields()

        return;

      if (rover instanceof struct) {
        struct struct = (struct) rover;

        for (Field f : struct.fields()) {
          Object o = f.get(struct);

          if (o == null)
            continue;
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jackson.databind.JsonNode.fields()

    @Override
    protected void _depositSchemaProperty(ObjectNode propertiesNode, JsonNode schemaNode)
    {
        JsonNode props = schemaNode.get("properties");
        if (props != null) {
            Iterator<Entry<String, JsonNode>> it = props.fields();
            while (it.hasNext()) {
                Entry<String,JsonNode> entry = it.next();
                String name = entry.getKey();
                if (_nameTransformer != null) {
                    name = _nameTransformer.transform(name);
View Full Code Here

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

        User userRequest = getLoggedUser();
        if (!userRequest.admin) {
            return forbidden();
        }
        JsonNode node = request().body().asJson();
        Iterator<Map.Entry<String, JsonNode>> iteratorMails = node.fields();
        while (iteratorMails.hasNext()) {
            Map.Entry<String, JsonNode> entry = iteratorMails.next();
            String mail = entry.getKey();
            boolean admin = entry.getValue().asBoolean();
            User user = User.findByEmail(mail);
View Full Code Here

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

            final JsonNode bindingsNode = body.get(Tokens.ARGS_BINDINGS);
            if (bindingsNode != null && !bindingsNode.isObject()) throw new IllegalArgumentException("bindings must be a Map");

            final Map<String,Object> bindings = new HashMap<>();
            if (bindingsNode != null)
                bindingsNode.fields().forEachRemaining(kv -> bindings.put(kv.getKey(), fromJsonNode(kv.getValue())));

            final JsonNode languageNode = body.get(Tokens.ARGS_LANGUAGE);
            final Optional<String> language =  null == languageNode ?
                    Optional.empty() : Optional.ofNullable(languageNode.asText());
View Full Code Here

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

        if (facility != null && !facility.isEmpty()) {
            message.addField("facility", facility);
        }

        // Add additional data if there is some.
        final Iterator<Map.Entry<String, JsonNode>> fields = node.fields();

        while (fields.hasNext()) {
            final Map.Entry<String, JsonNode> entry = fields.next();

            String key = entry.getKey();
View Full Code Here

Examples of com.fasterxml.jackson.databind.introspect.AnnotatedClass.fields()

    {
        // null -> no mix-in annotations
        AnnotatedClass ac = AnnotatedClass.construct(FieldBean.class, new JacksonAnnotationIntrospector(), null);
        // AnnotatedClass does not ignore non-visible fields, yet
        assertEquals(2, ac.getFieldCount());
        for (AnnotatedField f : ac.fields()) {
            String fname = f.getName();
            if (!"bar".equals(fname) && !"props".equals(fname)) {
                fail("Unexpected field name '"+fname+"'");
            }
        }
View Full Code Here

Examples of com.fasterxml.jackson.databind.node.ObjectNode.fields()

    final BigDecimal maxBid = getNumberIfPresent(tickerDataNode.path("max_bid").asText());
    BigDecimal volumeTradeCurrency = null;
    BigDecimal volumePriceCurrency = null;
    if (tickerDataNode instanceof ObjectNode) {
      final ObjectNode tickerDataObjectNode = (ObjectNode) tickerDataNode;
      final Iterator<Entry<String, JsonNode>> tickerDataFields = tickerDataObjectNode.fields();
      while (tickerDataFields.hasNext()) {
        final Entry<String, JsonNode> tickerDataEntry = tickerDataFields.next();
        if (tickerDataEntry.getKey().startsWith("vol_")) {
          if (volumeTradeCurrency == null)
            volumeTradeCurrency = getNumberIfPresent(tickerDataEntry.getValue().asText());
View Full Code Here

Examples of com.google.api.ads.adwords.axis.utils.v201402.SelectorBuilder.fields()

    int offset = 0;

    // Create selector.
    SelectorBuilder builder = new SelectorBuilder();
    Selector selector = builder
        .fields(
            "CampaignId",
            "Id",
            "CriteriaType",
            "PlatformName",
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.