Examples of convert()


Examples of org.apache.jackrabbit.oak.query.xpath.XPathToSQL2Converter.convert()

        } else if (SQL.equals(language)) {
            parser.setSupportSQL1(true);
            return parser.parse(statement);
        } else if (XPATH.equals(language)) {
            XPathToSQL2Converter converter = new XPathToSQL2Converter();
            String sql2 = converter.convert(statement);
            LOG.debug("XPath > SQL2: {}", sql2);
            try {
                // OAK-874: No artificial XPath selector name in wildcards
                parser.setIncludeSelectorNameInWildcardColumns(false);
                return parser.parse(sql2);
View Full Code Here

Examples of org.apache.karaf.shell.console.impl.jline.ConsoleImpl.DelegateSession.convert()

        assertEquals("get(xyz)", ts.lastInvoked);

        ds.format("foo", 12);
        assertEquals("format(foo,12)", ts.lastInvoked);

        ds.convert(TestSession.class, "a string");
        assertEquals("convert(TestSession,a string)", ts.lastInvoked);
    }

    static class TestSession implements CommandSession {
        String lastInvoked;
View Full Code Here

Examples of org.apache.mahout.classifier.df.data.DataConverter.convert()

      if (line.isEmpty()) {
        continue; // skip empty lines
      }
     
      // write the tuple in files[tuple.label]
      Instance instance = converter.convert(line);
      int label = (int) dataset.getLabel(instance);
      files[currents[label]].writeBytes(line);
      files[currents[label]].writeChar('\n');
     
      // update currents
View Full Code Here

Examples of org.apache.mahout.df.data.DataConverter.convert()

      if (line.isEmpty()) {
        continue; // skip empty lines
      }
     
      // write the tuple in files[tuple.label]
      Instance instance = converter.convert(id++, line);
      int label = instance.label;
      files[currents[label]].writeBytes(line);
      files[currents[label]].writeChar('\n');
     
      // update currents
View Full Code Here

Examples of org.apache.marmotta.kiwi.sail.KiWiValueFactory.convert()

        }

        connection = rpersistence.getConnection();
        try {
            // retrieve the persisted triples and put them into two sets to build justifications
            List<Statement> baseTriples = asList(connection.listTriples(null,null,null,v.convert(ctxb),false, true));
            List<Statement> infTriples = asList(connection.listTriples(null,null,null,v.convert(ctxi),true, true));

            Assert.assertEquals("number of base triples was not 3", 3, baseTriples.size());
            Assert.assertEquals("number of inferred triples was not 3", 3, infTriples.size());
View Full Code Here

Examples of org.apache.maven.archiva.indexer.lucene.LuceneEntryConverter.convert()

                    }

                    try
                    {
                        Document doc = hits.doc( offset + i );
                        LuceneRepositoryContentRecord record = converter.convert( doc );
                        results.addHit( record );
                    }
                    catch ( java.text.ParseException e )
                    {
                        log.warn( "Unable to parse document into record: " + e.getMessage(), e );
View Full Code Here

Examples of org.apache.maven.doxia.Converter.convert()

        boolean format = commandLine.hasOption( CLIManager.FORMAT );
        converter.setFormatOutput( format );

        try
        {
            converter.convert( input, output );
        }
        catch ( UnsupportedFormatException e )
        {
            showFatalError( e.getMessage(), e, showErrors );
View Full Code Here

Examples of org.apache.maven.doxia.DefaultConverter.convert()

        boolean format = commandLine.hasOption( CLIManager.FORMAT );
        converter.setFormatOutput( format );

        try
        {
            converter.convert( input, output );
        }
        catch ( UnsupportedFormatException e )
        {
            showFatalError( e.getMessage(), e, showErrors );
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.convert.GenericConverterFactory.convert()

      return;
   
    if (!(value instanceof Date))
    {
      GenericConverterFactory fac = GenericConverterFactory.getCurrentInstance();
      value = fac.convert(value, Date.class);
    }
    super.validate(context, component, value);
  }
 
 
View Full Code Here

Examples of org.apache.openejb.plugins.common.OpenEjbXmlConverter.convert()

      }
     
      Converter[] converters = converterList.toArray(new Converter[0]);
     
      OpenEjbXmlConverter converter = new OpenEjbXmlConverter(converters, new EclipseProjectClassLoader(getClass().getClassLoader(), project));
      converter.convert(ejbJarInputSource, openEjbJarInputSource);

      String[] warnings = jdtFacade.getWarnings();
      for (String warning : warnings) {
        status.addWarning(warning);
      }
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.