Examples of convert()


Examples of client.net.sf.saxon.ce.value.DateTimeValue.convert()

        final int targetType = getItemType(th).getPrimitiveType();
        switch (targetType) {
            case StandardNames.XS_DATE_TIME:
                return dt;
            case StandardNames.XS_DATE:
                return dt.convert(BuiltInAtomicType.DATE, true).asAtomic();
            case StandardNames.XS_TIME:
                return dt.convert(BuiltInAtomicType.TIME, true).asAtomic();
            case StandardNames.XS_DAY_TIME_DURATION:
            case StandardNames.XS_DURATION:
                return dt.getComponent(Component.TIMEZONE);
View Full Code Here

Examples of com.alibaba.tamper.process.convertor.Convertor.convert()

            if (currentField.getSrcField().getClazz() != null) {// 有指定对应的SrcClass
                Convertor convertor = ConvertorHelper.getInstance().getConvertor(String.class,
                                                                                 currentField.getSrcField().getClazz());
                if (convertor != null) {
                    // 先对String字符串进行一次转化
                    value = convertor.convert(currentField.getDefaultValue(), currentField.getSrcField().getClazz());
                }
            }

            if (value == null) {
                // 不存在对默认值处理的convertor,不予处理,后续尝试下自定义的convertor
View Full Code Here

Examples of com.artofsolving.jodconverter.DocumentConverter.convert()

    // Convert the document to the selected format
    //---------------------------------------------
   
    logger.info("Converting from " + aInputFile.getPath() + " to " + aOutputFile.getPath());
   
    converter.convert(aInputFile, aOutputFile);
   
    logger.info("Conversion complete");
  }
 
  public static File extractContentXml(File aOdtFile, String aTargetDirectory) throws ZipException, IOException
View Full Code Here

Examples of com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter.convert()

    // Convert the document to the selected format
    //---------------------------------------------
   
    logger.info("Converting from " + aInputFile.getPath() + " to " + aOutputFile.getPath());
   
    converter.convert(aInputFile, aOutputFile);
   
    logger.info("Conversion complete");
  }
 
  public static File extractContentXml(File aOdtFile, String aTargetDirectory) throws ZipException, IOException
View Full Code Here

Examples of com.asakusafw.utils.java.jsr269.bridge.Jsr269.convert()

            ImportBuilder ib = context.importer;
            Jsr269 conv = new Jsr269(f);
            List<Expression> parameterTypeLiterals = Lists.create();
            for (VariableElement parameter : helperMethod.getParameters()) {
                TypeMirror type = context.environment.getErasure(parameter.asType());
                parameterTypeLiterals.add(new TypeBuilder(f, ib.resolve(conv.convert(type)))
                    .dotClass()
                    .toExpression());
            }
            Expression attribute = new TypeBuilder(f, ib.toType(OperatorHelper.class))
                .newObject(new Expression[] {
View Full Code Here

Examples of com.basho.riak.client.core.converters.CrdtResponseConverter.convert()

        }

        RiakDtPB.DtFetchResp response = rawResponse.iterator().next();

        CrdtResponseConverter converter = new CrdtResponseConverter();
        RiakDatatype element = converter.convert(response);

        Response.Builder responseBuilder = new Response.Builder()
            .withCrdtElement(element);

        if (response.hasContext())
View Full Code Here

Examples of com.blacklocus.qs.worker.api.QSWorker.convert()

        if (handler == null) {
            throw new RuntimeException("No worker available for handler identifier: " + task.handler);
        }

        // The worker only needs to specify how it wants to deserialize its params.
        return handler.convert(new TaskKitFactory(task, handler, logService, workerIdService));
    }

    @SuppressWarnings("unchecked")
    @Override
    public Object process(TaskKit kit) throws Exception {
View Full Code Here

Examples of com.clarkparsia.pellet.owlapiv3.AxiomConverter.convert()

    ATermAppl[] head = new ATermAppl[] { ATermUtils.makeTypeAtom( x, D ) };
    ATermAppl[] body = new ATermAppl[] { ATermUtils.makeTypeAtom( x, C ) };

    ATermAppl rule = ATermUtils.makeRule( head, body );

    OWLAxiom actual = converter.convert( rule );

    Set<SWRLAtom> antecedent = new HashSet<SWRLAtom>();
    Set<SWRLAtom> consequent = new HashSet<SWRLAtom>();

    antecedent.add( classAtom( Class( "C" ), variable( "x" ) ) );
View Full Code Here

Examples of com.documents4j.api.IConverter.convert()

                            console.printf("Input file does not exist: %s%n", sourceFile);
                            continue;
                        }
                        String target = targetIndex == -1 ? source + "." + extensionFor(documentTypes[1]) : argument.substring(targetIndex + 1);
                        File targetFile = normalize(target);
                        converter.convert(sourceFile).as(documentTypes[0])
                                .to(targetFile, new LoggingFileConsumer(sourceFile, logger)).as(documentTypes[1])
                                .schedule();
                        console.printf("Scheduled conversion: %s -> %s%n", sourceFile, targetFile);
                        logger.info("Converting {} to {}", sourceFile, targetFile);
                    } else {
View Full Code Here

Examples of com.dubture.composer.ui.converter.Keywords2StringConverter.convert()

 
  private void createKeywordsEntry(Composite client, FormToolkit toolkit) {
    keywordsEntry = new FormEntry(client, toolkit, "Keywords", null, false);
   
    final Keywords2StringConverter converter = new Keywords2StringConverter();
    keywordsEntry.setValue(converter.convert(composerPackage.getKeywords()), true);
   
    keywordsEntry.addFormEntryListener(new FormEntryAdapter() {
      String2KeywordsConverter converter;
      public void focusGained(FormEntry entry) {
        converter = new String2KeywordsConverter(composerPackage);
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.