Examples of Asset


Examples of com.ngt.jopenmetaverse.shared.sim.asset.Asset

              MethodDelegate<Void, AssetReceivedCallbackArgs> assetReceivedCallback
              = new MethodDelegate<Void, AssetReceivedCallbackArgs>()
              {
                public Void execute(AssetReceivedCallbackArgs e) {
                  AssetDownload transfer = e.getTransfer();
                  Asset asset = e.getAsset();
                  if (transfer.Success && asset instanceof AssetWearable)
                  {
                    // Update this wearable with the freshly downloaded asset
                    wearable.Asset = (AssetWearable)asset;
View Full Code Here

Examples of com.sun.enterprise.server.ss.util.ASSet

    }

    public java.util.Set keys() {
        if (wrapSelectionKeys &&
            ASSocketFacadeUtils.getASSocketService().isServerStartingUp(port)) {
            return new ASSet(sel.keys(), this);
        } else {
            return sel.keys();
        }
    }
View Full Code Here

Examples of com.volantis.mcs.assets.Asset

    public String computeURLAsString(SelectedVariant selectedVariant) {
        if (selectedVariant == null) {
            return null;
        }
        Asset asset = (Asset) selectedVariant.getOldObject();
        return computeURLAsString(asset);
    }
View Full Code Here

Examples of de.ailis.jollada.model.Asset

     */

    @Test
    public void testSubject()
    {
        final Asset asset = new Asset();
        asset.setSubject("SUBJECT");
        assertEquals("SUBJECT", asset.getSubject());
    }
View Full Code Here

Examples of er.indexing.example.eof.Asset

    private void testIndexing() {
        EOEditingContext ec = ERXEC.newEditingContext();
        ec.lock();
        try {
            Tag tag = Tag.clazz.allObjects(ec).lastObject();
            Asset asset = Asset.clazz.allObjects(ec).lastObject();
            AssetGroup assetGroup = AssetGroup.clazz.allObjects(ec).lastObject();
            // new DataCreator().createDummyData();
            ERIndex eofStore = ERIndex.indexNamed("AssetInEOFStore");
            ERIndex fileStore = ERIndex.indexNamed("AssetInFileStore");
            EOQualifier tagQualifier = new EOKeyValueQualifier("tags.name", EOQualifier.QualifierOperatorEqual, tag.name());
View Full Code Here

Examples of juzu.impl.asset.Asset

      StringBuilder buffer = new StringBuilder();
      buffer.append("<script type=\"text/javascript\">");
      buffer.append(" var require={");
      buffer.append("\"paths\":{");
      for (Iterator<Asset> i = modules.iterator(); i.hasNext();) {
        Asset module = i.next();
        buffer.append("\"").append(module.getId()).append("\":\"");
        String uri = module.resolveURI(minifyAssets);
        uri = uri.substring(0, uri.lastIndexOf(".js"));
        buffer.append(renderAssetURL(module.getLocation(), uri));
        buffer.append("\"");
        if (i.hasNext()) {
          buffer.append(",");
        }
      }
View Full Code Here

Examples of juzu.impl.plugin.asset.Asset

            throw new UnsupportedOperationException("handle me gracefully");
          }
        }

        //
        Asset parsed = new Asset("stylesheet", state);
        LessAsset asset = new LessAsset(
            parsed.id,
            parsed.key.value,
            parsed.depends,
            parsed.maxAge
View Full Code Here

Examples of net.feed_the_beast.launcher.json.assets.AssetIndex.Asset

        Parallel.TaskHandler th = new Parallel.ForEach(index.objects.entrySet())
                .withFixedThreads(2 * OSUtils.getNumCores())
                        //.configurePoolSize(2*2*OSUtils.getNumCores(), 10)
                .apply(new Parallel.F<Entry<String, Asset>, Void>() {
                    public Void apply (Entry<String, Asset> e) {
                        Asset asset = e.getValue();
                        File local = new File(targetDir, e.getKey());
                        File object = new File(objects, asset.hash.substring(0, 2) + "/" + asset.hash);

                        old.remove(local);

View Full Code Here

Examples of net.sf.sitstart.dto.Asset

     * @see net.sf.sitstart.svc.internal.AssetProcessor#process(net.sf.sitstart.svc.internal.AssetWithContent)
     */
    public void process(AssetWithContent assetWithContent)
    {
        MimeTypeDetectingInputStream mimeTypeDetectorStream = null;
        Asset                        asset                  = null;
        Date                         start                  = null;
        Date                         end                    = null;
       
        // PRECONDITIONS
        assert assetWithContent != null : "assetWithContent must not be null.";
       
        // Body
        start = new Date();
        asset = assetWithContent.getAsset();
       
        mimeTypeDetectorStream = new MimeTypeDetectingInputStream(mimeTypeDetector,
                                                                  assetWithContent.getInputStream(),
                                                                  null,
                                                                  asset.getURI());
        linkExtractor.extractLinks(asset, mimeTypeDetectorStream);
        asset.setDetectedMimeType(mimeTypeDetectorStream.getDetectedMimeType());
        end = new Date();
       
        asset.setProcessingTimeInMs(end.getTime() - start.getTime());
    }
View Full Code Here

Examples of org.apache.tapestry.Asset

    @Test
    public void normal_conversion()
    {
        AssetSource source = mockAssetSource();
        ObjectLocator locator = mockObjectLocator();
        Asset asset = mockAsset();
        String path = "${foo}";
        String expanded = "foo/bar/baz.gif";
        AnnotationProvider annotationProvider = mockAnnotationProvider();
        TypeCoercer typeCoercer = mockTypeCoercer();
        Path pathAnnotation = mockPath();
        SymbolSource symbolSource = mockSymbolSource();

        train_getAnnotation(annotationProvider, Path.class, pathAnnotation);
        train_value(pathAnnotation, path);
        train_expandSymbols(symbolSource, path, expanded);
        train_findAsset(source, null, expanded, null, asset);
        train_coerce(typeCoercer, asset, Asset.class, asset);

        replay();

        ObjectProvider provider = new AssetObjectProvider(source, typeCoercer, symbolSource);

        Asset result = provider.provide(Asset.class, annotationProvider, locator);

        assertSame(result, asset);

        verify();
    }
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.