Examples of string()


Examples of org.elasticsearch.common.xcontent.XContentBuilder.string()

    try {
      XContentBuilder tmp = jsonBuilder();
      parser = XContentFactory.xContent(contentType).createParser(data);
      parser.nextToken();
      tmp.copyCurrentStructure(parser);
      builder.field(fieldName, tmp.string());
    } catch (JsonParseException ex) {
      // If we get an exception here the most likely cause is nested JSON that
      // can't be figured out in the body. At this point just push it through
      // as is, we have already added the field so don't do it again
      addSimpleField(builder, fieldName, data);
View Full Code Here

Examples of org.hisrc.jscm.codemodel.JSCodeModel.string()

        .args(codeModel.integer(0), codeModel.integer(1)));

    callExpressions.expression(x.i().args(y).e(codeModel.integer(0)));
    callExpressions.expression(x.i().args(y).p("zero"));
    callExpressions.expression(x.i().args(y).p(codeModel.integer(0)));
    callExpressions.expression(x.i().args(y).p(codeModel.string("two")));

    JSBlock newExpressions = leftHandSideExpressions.block();

    newExpressions.expression(x._new());
View Full Code Here

Examples of org.hisrc.jscm.codemodel.impl.CodeModelImpl.string()

        .args(codeModel.integer(0), codeModel.integer(1)));

    callExpressions.expression(x.i().args(y).e(codeModel.integer(0)));
    callExpressions.expression(x.i().args(y).p("zero"));
    callExpressions.expression(x.i().args(y).p(codeModel.integer(0)));
    callExpressions.expression(x.i().args(y).p(codeModel.string("two")));

    JSBlock newExpressions = leftHandSideExpressions.block();

    newExpressions.expression(x._new());
View Full Code Here

Examples of org.jboss.test.annotation.factory.support.Complex.string()

     
      Annotation annotation  = (Annotation)AnnotationCreator.createAnnotation(expr, Complex.class, true);
      assertEquals(Complex.class, annotation.annotationType());
      Complex complex = (Complex)annotation;
      assertEquals('a', complex.ch());
      assertEquals("Test123", complex.string());
      assertEquals(9,9, complex.flt());
      assertEquals(123456789.99, complex.dbl());
      assertEquals(1, complex.shrt());
      assertEquals(987654321, complex.lng());
      assertEquals(123, complex.integer());
View Full Code Here

Examples of org.jboss.test.annotation.factory.support.ComplexWithDefault.string()

      String expr = "@org.jboss.test.annotation.factory.support.ComplexWithDefault";
      Annotation annotation = (Annotation)AnnotationCreator.createAnnotation(expr, ComplexWithDefault.class);
      assertEquals(ComplexWithDefault.class, annotation.annotationType());
      ComplexWithDefault complex = (ComplexWithDefault)annotation;
      assertEquals('d', complex.ch());
      assertEquals("default", complex.string());
      assertEquals(1.0, complex.flt());
      assertEquals(2.3, complex.dbl());
      assertEquals(2, complex.shrt());
      assertEquals(123456789, complex.lng());
      assertEquals(123, complex.integer());
View Full Code Here

Examples of org.jruby.ext.stringio.RubyStringIO.string()

    @JRubyMethod(name = "puts", rest = true)
    public IRubyObject puts(ThreadContext context, IRubyObject[] args) {
        RubyStringIO sio = (RubyStringIO) getRuntime().getClass("StringIO").newInstance(context, new IRubyObject[0], Block.NULL_BLOCK);
        sio.puts(context, args);
        write(sio.string());

        return getRuntime().getNil();
    }

    @Override
View Full Code Here

Examples of org.jruby.ext.stringio.StringIO.string()

    @JRubyMethod(name = "puts", rest = true)
    public IRubyObject puts(ThreadContext context, IRubyObject[] args) {
        StringIO sio = (StringIO) getRuntime().getClass("StringIO").newInstance(context, new IRubyObject[0], Block.NULL_BLOCK);
       
        sio.puts(context, args);
        write(sio.string(context));

        return getRuntime().getNil();
    }

    @Override
View Full Code Here

Examples of org.neo4j.batchimport.utils.Params.string()

        if (params.invalid()) {
            System.err.printf("Usage java -jar batchimport.jar %s%n",params);
            System.exit(1);
        }
        File graphDb = params.file("data/dir");
        String nodesFile = params.string("nodes.csv");
        String relationshipsFile = params.string("relationships.csv");

        if (graphDb.exists()) {
            FileUtils.deleteRecursively(graphDb);
        }
View Full Code Here

Examples of org.neo4j.batchimport.utils.Params.string()

            System.err.printf("Usage java -jar batchimport.jar %s%n",params);
            System.exit(1);
        }
        File graphDb = params.file("data/dir");
        String nodesFile = params.string("nodes.csv");
        String relationshipsFile = params.string("relationships.csv");

        if (graphDb.exists()) {
            FileUtils.deleteRecursively(graphDb);
        }
        final long nodesToCreate = params.longValue("#nodes");
View Full Code Here

Examples of org.neo4j.batchimport.utils.Params.string()

        ParallelImporter importer = new ParallelImporter(graphDb,nodesFile,relationshipsFile,
                nodesToCreate, params.intValue("#max-props-per-node"),
                params.intValue("#usual-rels-pernode"),
                params.intValue("#max-rels-per-node"),
                params.intValue("#max-props-per-rel"),
                params.string("rel,types").split(","), '\t', false);
        importer.init();
        long time = System.currentTimeMillis();
        try {
            importer.run();
        } finally {
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.