Examples of convert()


Examples of org.gradle.initialization.LayoutCommandLineConverter.convert()

            parser.allowUnknownOptions();
            parser.allowMixedSubcommandsAndOptions();
            try {
                ParsedCommandLine parsedCommandLine = parser.parse(args);
                loggingConfigurationConverter.convert(parsedCommandLine, loggingConfiguration);
                buildLayoutConverter.convert(parsedCommandLine, buildLayout);
            } catch (CommandLineArgumentException e) {
                // Ignore, deal with this problem later
            }

            LoggingManagerInternal loggingManager = loggingServices.getFactory(LoggingManagerInternal.class).create();
View Full Code Here

Examples of org.gradle.logging.internal.LoggingCommandLineConverter.convert()

        //configure verbosely only if arguments do not specify any log level.
        if (parameters.getVerboseLogging(false) && !parsedCommandLine.hasAnyOption(converter.getLogLevelOptions())) {
            return LogLevel.DEBUG;
        }

        LoggingConfiguration loggingConfiguration = converter.convert(parsedCommandLine, new LoggingConfiguration());
        return loggingConfiguration.getLogLevel();
    }
}
View Full Code Here

Examples of org.graylog2.plugin.inputs.Converter.convert()

    @Test
    public void testConvert() throws Exception {
        Converter hc = new NumericConverter(new HashMap<String, Object>());

        assertNull(hc.convert(null));
        assertEquals("", hc.convert(""));
        assertEquals("lol no number", hc.convert("lol no number"));
        assertEquals(9001, hc.convert("9001"));
        assertEquals(2147483648L, hc.convert("2147483648"));
        assertEquals(10.4D, hc.convert("10.4"));
View Full Code Here

Examples of org.gridminer.pmml.converter.PmmlVisualizer.convert()

            out.write(pmml);
            out.close();
            PmmlVisualizer c= new PmmlVisualizer("pmml.dat", "svg.css");
            StringWriter result = new StringWriter();
            mOutput.write(ControlBlock.LIST_BEGIN);
              mOutput.write(c.convert(new PrintWriter(result)).toCharArray());
              mOutput.write(ControlBlock.LIST_END);
             
          }
          catch (ClassCastException e) {
            throw new ActivityProcessingException(e);
View Full Code Here

Examples of org.h2.table.Column.convert()

                    Expression e = expr[i];
                    if (e != null) {
                        // e can be null (DEFAULT)
                        e = e.optimize(session);
                        try {
                            Value v = c.convert(e.getValue(session));
                            newRow.setValue(index, v);
                        } catch (DbException ex) {
                            throw setRow(ex, x, getSQL(expr));
                        }
                    }
View Full Code Here

Examples of org.hibernate.exception.SQLExceptionConverter.convert()

      fail("INSERT should have failed");
    }
    catch(SQLException sqle) {
      JDBCExceptionReporter.logExceptions(sqle, "Just output!!!!");
      JDBCException jdbcException = converter.convert(sqle, null, null);
      assertEquals( "Bad conversion [" + sqle.getMessage() + "]", ConstraintViolationException.class , jdbcException.getClass() );
      ConstraintViolationException ex = (ConstraintViolationException) jdbcException;
      System.out.println("Violated constraint name: " + ex.getConstraintName());
    }
    finally {
View Full Code Here

Examples of org.hibernate.ogm.options.spi.AnnotationConverter.convert()

  }

  private static Option<?> convert(Annotation annotation, Class<? extends AnnotationConverter<?>> converterClass) {
    try {
      AnnotationConverter converter = converterClass.newInstance();
      return converter.convert( annotation );
    }
    catch (InstantiationException e) {
      throw log.cannotConvertAnnotation( converterClass, e );
    }
    catch (IllegalAccessException e) {
View Full Code Here

Examples of org.jasen.io.ByteToCharUTF7Converter.convert()

   
              byte[] bytes = out.toByteArray();
   
              char[] chars = new char[bytes.length];
   
              btc.convert(bytes, 0, bytes.length,  chars, 0, chars.length);
   
              content = new String(chars);
            }
            else
            {
View Full Code Here

Examples of org.jasig.portal.concurrency.IEntityLockService.convert()

    print(msg);
    assertTrue(msg, valid);

    // Convert the READ lock to a WRITE lock:
    print("Converting READ lock to WRITE");
    service.convert(lock, IEntityLockService.WRITE_LOCK, writeSecs);
    msg = "Testing if converted lock is still valid";
    valid = service.isValid(lock);
    print(msg);
    assertTrue(msg, valid);
View Full Code Here

Examples of org.jboss.bpm.console.server.util.Payload2XML.convert()

      String instanceId
  )
  {
    Map<String, Object> javaPayload = getProcessManagement().getInstanceData(instanceId);
    Payload2XML payload2XML = new Payload2XML();
    StringBuffer sb = payload2XML.convert(instanceId, javaPayload);
    return Response.ok(sb.toString()).build();
  }

  @POST
  @Path("instance/{id}/state/{next}")
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.