Examples of transform()


Examples of org.teiid.core.types.Transform.transform()

    }
   
    @Test public void testObjectToAnyTransformFailure() {
        Transform transform = DataTypeManager.getTransform(DefaultDataClasses.OBJECT, DefaultDataClasses.TIME);
        try {
            transform.transform("1"); //$NON-NLS-1$
            fail("expected exception"); //$NON-NLS-1$
        } catch (TransformationException e) {
            assertEquals("Error Code:ERR.003.029.0025 Message:Invalid conversion from type class java.lang.Object with value '1' to type class java.sql.Time", e.getMessage()); //$NON-NLS-1$
        }
    }

Examples of org.terasology.math.AABB.transform()

            } else {
                MeshComponent mesh = target.getComponent(MeshComponent.class);
                LocationComponent location = target.getComponent(LocationComponent.class);
                if (mesh != null && mesh.mesh != null && location != null) {
                    aabb = mesh.mesh.getAABB();
                    aabb = aabb.transform(location.getWorldRotation(), location.getWorldPosition(), location.getWorldScale());
                }
            }
            if (aabb != null) {
                aabbRenderer.setAABB(aabb);
                aabbRenderer.render(2f);

Examples of org.testng.IAnnotationTransformer2.transform()

      //
      // Transform a configuration annotation
      //
      if (a instanceof IConfigurationAnnotation) {
        IConfigurationAnnotation configuration = (IConfigurationAnnotation) a;
        transformer2.transform(configuration,testClass, testConstructor, testMethod);
      }
     
      //
      // Transform @DataProvider
      //

Examples of org.vfny.geoserver.wms.responses.helpers.WMSCapsTransformer.transform()

        // }
        ByteArrayOutputStream out = new ByteArrayOutputStream();

        try {
            transformer.transform(request, out);
        } catch (TransformerException e) {
            throw new WmsException(e);
        }

        this.rawResponse = out.toByteArray();

Examples of org.waveprotocol.wave.concurrencycontrol.common.DeltaPair.transform()

    // Deltas with same ops are the same, other info should be ignored
    assertTrue(DeltaPair.areSame(client, server));

    // Transforming the ops should result in only version update server ops
    DeltaPair pair = new DeltaPair(client, server);
    pair = pair.transform();
    assertEquals(0, pair.getClient().size());
    assertEquals(2, pair.getServer().size());
    checkVersionUpdate(pair.getServer().get(0), 1, null);
    checkVersionUpdate(pair.getServer().get(1), 1, resultingVersion);
  }

Examples of org.wso2.carbon.dataservices.core.XSLTTransformer.transform()

    XSLTTransformer transformer = result.getXsltTransformer();
    if (transformer == null) {
      return input;
    } else {
      try {
        return transformer.transform(input);
      } catch (Exception e) {
        throw new DataServiceFault(e,
            "Error in result XSLT transformation");
      }
    }

Examples of org.xmlBlaster.contrib.VersionTransformerCache.transform()

      String destination = "client/subject/1";
     
      VersionTransformerCache cache = new VersionTransformerCache();
     
      try {
         byte[] ret = cache.transform(replPrefix, srcVersion, destVersion, destination, srcData.getBytes(), null);
         log.info(new String(ret));
      }
      catch (Exception ex) {
         ex.printStackTrace();
      }

Examples of org.zanata.webtrans.server.rpc.TransUnitTransformer.transform()

        }

        TransUnitTransformer transUnitTransformer =
                serviceLocator.getInstance(TransUnitTransformer.class);
        TransUnit transUnit =
                transUnitTransformer.transform(textFlow, target,
                        target.getLocale());

        DocumentId documentId =
                new DocumentId(document.getId(), document.getDocId());
        int wordCount = textFlow.getWordCount().intValue();

Examples of org.zeroturnaround.zip.transform.ZipEntryTransformer.transform()

      ZipEntryTransformer transformer = (ZipEntryTransformer) entryByPath.remove(entryName);
      if (transformer == null) { // no transformer
        ZipEntryUtil.copyEntry(zipEntry, in, out, preserveTimestapms);
      }
      else { // still transfom entry
        transformer.transform(in, zipEntry, out);
      }
    }
  }

  private static class UnpackingCallback implements ZipEntryCallback {

Examples of playn.core.ImageLayer.transform()

      for (int n=0; n<logSize; n++) {
          logCount++;
          String message = logMessages.get(n);
          ImageLayer messageImage = generateLogMessageImageLayer(message);
          Number screenY = logScreenPos.y + (n * (logFontSize + 4));
          messageImage.transform().translate(logScreenPos.x, screenY.floatValue());
          logLayer.add(messageImage);
      }
     
      graphics().rootLayer().add(logLayer);
  }
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.