Package com.fasterxml.jackson.core

Examples of com.fasterxml.jackson.core.JsonGenerator.writeBooleanField()


            g.writeStartObject();

            g.writeStringField( DirectMemoryConstants.KEY_FIELD_NAME, request.getKey() );

            g.writeBooleanField( DirectMemoryConstants.PUT_FIELD_NAME, request.isUpdate() );

            g.writeNumberField( DirectMemoryConstants.EXPIRES_IN_FIELD_NAME, request.getExpiresIn() );

            // FIXME take care of NPE
            // cache content generation
View Full Code Here


            JsonGenerator g = this.jsonFactory.createJsonGenerator( stringWriter );

            g.writeStartObject();

            g.writeBooleanField( DirectMemoryConstants.FOUND_FIELD_NAME, response.isFound() );

            g.writeStringField( DirectMemoryConstants.KEY_FIELD_NAME, response.getKey() );

            if ( response.getCacheContent() != null && response.getCacheContent().length > 0 )
            {
View Full Code Here

                json.writeStringField("template", index + "*");
                json.writeObjectFieldStart("mappings");

                json.writeObjectFieldStart("_default_");
                json.writeObjectFieldStart("_all");
                json.writeBooleanField("enabled", false);
                json.writeEndObject();
                json.writeObjectFieldStart("properties");
                json.writeObjectFieldStart("name");
                json.writeObjectField("type", "string");
                json.writeObjectField("index", "not_analyzed");
View Full Code Here

      // we only need to write a small amount of information
      //json.writeNumberField("treeId", tree_id);
      json.writeStringField("name", name);
      json.writeStringField("description", description);
      json.writeStringField("notes", notes);
      json.writeBooleanField("strictMatch", strict_match);
      json.writeNumberField("created", created);
      json.writeBooleanField("enabled", enabled);
      json.writeBooleanField("storeFailures", store_failures);
      json.writeEndObject();
      json.close();
View Full Code Here

      json.writeStringField("name", name);
      json.writeStringField("description", description);
      json.writeStringField("notes", notes);
      json.writeBooleanField("strictMatch", strict_match);
      json.writeNumberField("created", created);
      json.writeBooleanField("enabled", enabled);
      json.writeBooleanField("storeFailures", store_failures);
      json.writeEndObject();
      json.close();
     
      // TODO zero copy?
View Full Code Here

      json.writeStringField("description", description);
      json.writeStringField("notes", notes);
      json.writeBooleanField("strictMatch", strict_match);
      json.writeNumberField("created", created);
      json.writeBooleanField("enabled", enabled);
      json.writeBooleanField("storeFailures", store_failures);
      json.writeEndObject();
      json.close();
     
      // TODO zero copy?
      return output.toByteArray();
View Full Code Here

            boolean isOverridden = (Boolean)(en.getMethod("isOverridden")).invoke(v);
            gen.writeStartObject();                                        //          {
            gen.writeStringField(key,valueAsString);                              //              "key": "value" 
            gen.writeStringField("description", valueDescription);                        //            ,"description":"description"
            gen.writeStringField("type",type.getSimpleName());                          //            ,"type":"type"
            gen.writeBooleanField("editable",isEditable);                          //            ,"editable":"true|false"
            gen.writeBooleanField("visible",isVisible);                          //            ,"visible":"true|false"
            gen.writeBooleanField("overridden",isOverridden);                          //            ,"overridden":"true|false"
            gen.writeEndObject();                                          //          }
      }
      if (gen.getOutputContext().inArray()) gen.writeEndArray();                          //        ]
View Full Code Here

            gen.writeStartObject();                                        //          {
            gen.writeStringField(key,valueAsString);                              //              "key": "value" 
            gen.writeStringField("description", valueDescription);                        //            ,"description":"description"
            gen.writeStringField("type",type.getSimpleName());                          //            ,"type":"type"
            gen.writeBooleanField("editable",isEditable);                          //            ,"editable":"true|false"
            gen.writeBooleanField("visible",isVisible);                          //            ,"visible":"true|false"
            gen.writeBooleanField("overridden",isOverridden);                          //            ,"overridden":"true|false"
            gen.writeEndObject();                                          //          }
      }
      if (gen.getOutputContext().inArray()) gen.writeEndArray();                          //        ]
      gen.writeEndObject();                                            //    }
View Full Code Here

            gen.writeStringField(key,valueAsString);                              //              "key": "value" 
            gen.writeStringField("description", valueDescription);                        //            ,"description":"description"
            gen.writeStringField("type",type.getSimpleName());                          //            ,"type":"type"
            gen.writeBooleanField("editable",isEditable);                          //            ,"editable":"true|false"
            gen.writeBooleanField("visible",isVisible);                          //            ,"visible":"true|false"
            gen.writeBooleanField("overridden",isOverridden);                          //            ,"overridden":"true|false"
            gen.writeEndObject();                                          //          }
      }
      if (gen.getOutputContext().inArray()) gen.writeEndArray();                          //        ]
      gen.writeEndObject();                                            //    }
      gen.writeEndObject();                                          //}
View Full Code Here

            gen.writeStartObject();                                        //          {
            gen.writeStringField("key", key)
            gen.writeStringField("value",valueAsString);
            gen.writeStringField("description", valueDescription);                        //            ,"description":"description"
            gen.writeStringField("type",type.getSimpleName());                          //            ,"type":"type"
            gen.writeBooleanField("editable", isEditable);
            gen.writeBooleanField("overridden", isOverridden);
            gen.writeEndObject();                                          //          }
      }
      if (gen.getOutputContext().inArray()) gen.writeEndArray();                          //        ]
      gen.close();
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.