Examples of Transformer


Examples of cc.redberry.core.transformations.Transformer

                indicator);

        StringBuilder sb;
        Tensor temp;
        String covariantIndicesString;
        Transformation n2 = new SqrSubs(Tensors.parseSimple("n_l")), n2Transformer = new Transformer(TraverseState.Leaving, new Transformation[]{n2});
        Transformation[] transformations = ArraysUtils.addAll(new Transformation[]{EliminateMetricsTransformation.ELIMINATE_METRICS, n2Transformer}, riemannBackground);
        for (i = 0; i < actualHatQuantities; ++i) {
            hatQuantities[i] = new Expression[operatorOrder + 1 - i];
            covariantIndicesString = IndicesUtils.toString(Arrays.copyOfRange(covariantIndices, 0, covariantIndices.length - i), OutputFormat.Redberry);
            for (j = 0; j < operatorOrder + 1 - i; ++j) {
View Full Code Here

Examples of cc.redberry.transformation.Transformer

    public static Transformation createCollectByPattern(String collectPattern) {
        return new PatternCollectManager(CollectPatternParser.parse(collectPattern));
    }

    public static Transformation createCollectAllScalars() {
        return new Transformer(CollectAllScalars.INSTANCE);
    }
View Full Code Here

Examples of com.alibaba.citrus.springext.Schema.Transformer

        };
    }

    /** 修改schema,除去所有的includes。 */
    public static Transformer getTransformerWhoRemovesIncludes() {
        return new Transformer() {
            public void transform(Document document, String systemId) {
                Element root = document.getRootElement();

                // <xsd:schema>
                if (W3C_XML_SCHEMA_NS_URI.equals(root.getNamespaceURI()) && "schema".equals(root.getName())) {
View Full Code Here

Examples of com.astamuse.asta4d.render.transformer.Transformer

        }
    }

    @SuppressWarnings("rawtypes")
    public Object get(String selector) {
        Transformer t = retrieveSingleTransformerOnSelector(selector);
        Object content = retrieveContentFromTransformer(t);
        return content;
    }
View Full Code Here

Examples of com.citytechinc.cq.component.annotations.transformer.Transformer

    Map<String, ComponentNameTransformer> transformers = new HashMap<String, ComponentNameTransformer>();

    for (Class<?> c : reflections.getTypesAnnotatedWith(Transformer.class)) {
      if (Arrays.asList(c.getInterfaces()).contains(ComponentNameTransformer.class)) {
        CtClass ctclass = classPool.getCtClass(c.getName());
        Transformer transformer = (Transformer) ctclass.getAnnotation(Transformer.class);
        transformers.put(transformer.value(), (ComponentNameTransformer) c.newInstance());
      }
    }

    return transformers;
  }
View Full Code Here

Examples of com.cuubez.core.transform.Transformer

           messageContext.getResponseContext().setContent(responseContent);

        } else if (MediaType.APPLICATION_XML.equals(messageContext.getResponseContext().getMediaType()) && messageContext.getResponseContext().isNeedToTransform()) {

            log.trace("response transformation[XML] started");
            Transformer transformer = new DefaultXMLTransformer();
            String output = transformer.marshal(messageContext.getResponseContext().getReturnObject());
            messageContext.getResponseContext().setContent(output);

        } else if (MediaType.APPLICATION_JSON.equals(messageContext.getResponseContext().getMediaType()) && messageContext.getResponseContext().isNeedToTransform()) {

            log.trace("response transformation[JSON] started");
            Transformer transformer = new DefaultJSONTransformer();
            String output = transformer.marshal(messageContext.getResponseContext().getReturnObject());
            messageContext.getResponseContext().setContent(output);

        } else if (MediaType.TEXT_PLAIN.equals(messageContext.getResponseContext().getMediaType()) && messageContext.getResponseContext().isNeedToTransform()) {

            log.trace("response transformation[Text] started");
            Transformer transformer = new DefaultTextTransformer();
            String output = transformer.marshal(messageContext.getResponseContext().getReturnObject());
            messageContext.getResponseContext().setContent(output);

        }

    }
View Full Code Here

Examples of com.dotcms.repackage.javax.xml.transform.Transformer

        Source xsltSource = new StreamSource(new InputStreamReader(new FileInputStream(binFile), "UTF8"));

        // create an instance of TransformerFactory
        TransformerFactory transFact = TransformerFactory.newInstance();
        StreamResult result = new StreamResult(new ByteArrayOutputStream());
        Transformer trans = transFact.newTransformer(xsltSource);

        try{
          trans.transform(xmlSource, result);
        }catch(Exception e1){
          Logger.error(XsltTool.class, "Error in transformation. "+e1.getMessage());
          e1.printStackTrace();
        }
View Full Code Here

Examples of com.twitter.joauth.keyvalue.Transformer

    private KeyValueHandler createKeyValueHandler(
      KeyValueHandler kvHandler,
      KeyValueCallback transformer
    ) {

      Transformer processKey = new Transformer() {
        @Override
        public String transform(String input) {
          return helper.processKey(input);
        }
      };
View Full Code Here

Examples of de.cit_ec.helmerttransformation.Transformer

    public ReceiverCalculatorSender(String configurationfile, String pub, String sub) {

        this.pubname = pub;
        this.subname = sub;
        this.trans = new Transformer(configurationfile);
        this.scalar = trans.getScaleFactor();
        initCommunication();
        transformpointasarray[0] = 0.0f;
        transformpointasarray[1] = 0.0f;
        transformpointasarray[2] = 0.0f;
View Full Code Here

Examples of de.crowdcode.kissmda.core.Transformer

            guiceModules, transformerClazz);
        // Create the transformer class with Guice module as child
        // injector and execute
        Injector injector = parentInjector
            .createChildInjector(guiceModuleClazz.newInstance());
        Transformer transformer = injector
            .getInstance(transformerClazz);
        transformer.transform(context);

        logger.info("Stop the transformation with following Transformer:"
            + transformerClazz.getName());
      }
    }
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.