Examples of convert()


Examples of org.apache.turbine.util.ParameterParser.convert()

        String theButton = null;

        // ParameterParser.
        ParameterParser pp = data.getParameters();

        String button = pp.convert(BUTTON);

        // Loop through and find the button.
        for (Enumeration e = pp.keys() ; e.hasMoreElements() ;)
        {
            String key = (String) e.nextElement();
View Full Code Here

Examples of org.apache.turbine.util.parser.ParameterParser.convert()

        // Name of the button.
        String theButton = null;
        // Parameter parser.
        ParameterParser pp = data.getParameters();

        String button = pp.convert(BUTTON);
        String key = null;

        // Loop through and find the button.
        for (Iterator it = pp.keySet().iterator(); it.hasNext();)
        {
View Full Code Here

Examples of org.apache.wicket.core.util.lang.PropertyResolverConverter.convert()

    Calendar calDate = Calendar.getInstance();
    calDate.clear();
    calDate.set(2011, Calendar.APRIL, 17);
    Date date = calDate.getTime();

    Object actual = converter.convert(date, String.class);
    String expected = converterLocator.getConverter(Date.class).convertToString(date, locale);
    assertEquals(expected, actual);
  }

  /**
 
View Full Code Here

Examples of org.apache.xmlgraphics.image.loader.spi.ImageConverter.convert()

        if (converterCount > 0) {
            for (int i = startingPoint; i < converterCount; i++) {
                ImageConverter converter = getConverter(i);
                start = System.currentTimeMillis();
                img = converter.convert(img, hints);
                if (log.isTraceEnabled()) {
                    duration = System.currentTimeMillis() - start;
                    log.trace("Image conversion using " + converter + " took " + duration + " ms.");
                }
View Full Code Here

Examples of org.apache.xmlrpc.common.TypeConverter.convert()

                        }
                    }
                    throw new UndeclaredThrowableException(t);
                }
                TypeConverter typeConverter = typeConverterFactory.getTypeConverter(pMethod.getReturnType());
                return typeConverter.convert(result);
            }
        });
    }
}
View Full Code Here

Examples of org.araneaframework.uilib.list.util.Converter.convert()

    }
    String name = value.getName();
    if (name != null) {
      Converter converter = (Converter) this.converters.get(name);
      if (converter != null) {
        return converter.convert(value.getValue());
      }
    }
    if (this.globalConverter != null) {
      return this.globalConverter.convert(value.getValue());
    }
View Full Code Here

Examples of org.artofsolving.jodconverter.OfficeDocumentConverter.convert()

                }
            }
            LOGGER.debug("进行文档转换转换:" + inputFile.getPath() + " --> " + outputFile.getPath());
            OfficeDocumentConverter converter = new OfficeDocumentConverter(officeManager);

            converter.convert(inputFile, outputFile);

            LOGGER.debug("文档转换完成:" + inputFile.getPath() + " --> " + outputFile.getPath());
            return outputFile;
        } catch (Exception e) {
            LOGGER.error(e);
View Full Code Here

Examples of org.axonframework.serializer.ContentTypeConverter.convert()

        when(mockByteToStreamConverter.expectedSourceType()).thenReturn(byte[].class);
        when(mockStreamToByteConverter.targetType()).thenReturn(InputStream.class);
        when(mockByteToStreamConverter.convert(isA(SerializedObject.class)))
                .thenReturn(intermediate1_stream);
        when(mockStreamToByteConverter.convert(intermediate2_stream))
                .thenReturn(intermediate2_bytes);

        UpcasterChain chain = createUpcasterChain(mockConverterFactory, mockUpcaster12);

        List<SerializedObject> actualObjects = chain.upcast(object1, upcastingContext);
View Full Code Here

Examples of org.bigbluebutton.presentation.PageConverter.convert()

    return new File(filenameWithoutExt + ".pdf");
  }
 
  private boolean convertOfficeDocToPdf(UploadedPresentation pres, File pdfOutput) {
    PageConverter converter = new Office2PdfPageConverter();
    return converter.convert(pres.getUploadedFile(), pdfOutput, 0);
  }
 
  private void makePdfTheUploadedFileAndSetStepAsSuccess(UploadedPresentation pres, File pdf) {
    pres.setUploadedFile(pdf);
    pres.setLastStepSuccessful(true);
View Full Code Here

Examples of org.broadleafcommerce.openadmin.server.service.persistence.module.criteria.converter.FilterValueConverter.convert()

                if (!embeddedCollectionPath.getTargetProperty().equals(mappingProperty) && !StringUtils.isEmpty(mappingProperty)) {
                    PredicateProvider predicateProvider = mapping.getRestriction().getPredicateProvider();
                    if (predicateProvider != null) {
                        FilterValueConverter converter = mapping.getRestriction().getFilterValueConverter();
                        if (converter != null && CollectionUtils.isNotEmpty(mapping.getFilterValues())) {
                            Object val = converter.convert(mapping.getFilterValues().get(0));
                            if (predicateProvider instanceof LikePredicateProvider) {
                                restrictions.add(new TQRestriction("specialEntity." + mappingProperty, "LIKE", val + "%"));
                                break checkProperty;
                            } else if (predicateProvider instanceof EqPredicateProvider) {
                                restrictions.add(new TQRestriction("specialEntity." + mappingProperty, "=", val));
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.