Examples of loadMetadata()


Examples of com.kurento.kmf.repository.internal.repoimpl.filesystem.ItemsMetadata.loadMetadata()

    File tempFile = File.createTempFile("metadata", "");

    ItemsMetadata itemsMetadata = new ItemsMetadata(tempFile);

    for (int i = 0; i < 10; i++) {
      Map<String, String> md1 = itemsMetadata.loadMetadata("o" + i);
      md1.put("differentAtt", "value" + i);
      md1.put("sameAtt", "value");
    }

    itemsMetadata.save();
View Full Code Here

Examples of de.anomic.data.ymark.YMarkMetadata.loadMetadata()

              count--;
              prop.put("folders_"+count+"_comma", "");
              count++;
                  prop.put("folders", count);
              } else if(isMetadata) {
                count = putMeta(count, meta.loadMetadata());
              } else if(isURLdb) {
            count = putMeta(count, meta.getMetadata());
              } else if(isCrawlStart) {
                Log.logInfo("YMark", "I am looking for CrawlStart: "+post.get(ROOT).substring(2));
                final YMarkCrawlStart crawlStart = new YMarkCrawlStart(sb.tables, post.get(ROOT).substring(2));
View Full Code Here

Examples of de.anomic.data.ymark.YMarkMetadata.loadMetadata()

            try {
                  final YMarkMetadata meta = new YMarkMetadata(new DigestURI(post.get(ROOT).substring(2)), sb.indexSegments);
              final Document document = meta.loadDocument(sb.loader);
              final TreeMap<String, YMarkTag> tags = sb.tables.bookmarks.getTags(bmk_user);
              if(isAutoTagger)  {
                prop.put("folders_"+count+"_foldername","<small><b>meta-"+YMarkMetadata.METADATA.KEYWORDS.name().toLowerCase()+":</b> " + meta.loadMetadata().get(YMarkMetadata.METADATA.KEYWORDS) + "</small>");
                putProp(count, "meta");
                count++;
            prop.put("folders_"+count+"_foldername","<small><b>with preference: </b>"+YMarkAutoTagger.autoTag(document, 4, tags)+"</small>");
              putProp(count, "meta");
              count++;
View Full Code Here

Examples of de.anomic.data.ymark.YMarkMetadata.loadMetadata()

            prop.put("folders_"+count+"_foldername","<small><b>without preference: </b>"+YMarkAutoTagger.autoTag(document, 4, new  TreeMap<String, YMarkTag>())+"</small>");
              putProp(count, "meta");
              count++;
                  prop.put("folders", count);
              } else if(isMetadata) {
                count = putMeta(count, meta.loadMetadata());
              } else if(isURLdb) {
            count = putMeta(count, meta.getMetadata());
              } else if(isCrawlStart) {
                Log.logInfo("YMark", "I am looking for CrawlStart: "+post.get(ROOT).substring(2));
                final YMarkCrawlStart crawlStart = new YMarkCrawlStart(sb.tables, post.get(ROOT).substring(2));
View Full Code Here

Examples of de.anomic.data.ymark.YMarkMetadata.loadMetadata()

      }

          try {
        final YMarkMetadata meta = new YMarkMetadata(new DigestURI(url), sb.indexSegments);
        final Document document = meta.loadDocument(sb.loader);
        final EnumMap<YMarkMetadata.METADATA, String> metadata = meta.loadMetadata();

        prop.putXML("title", metadata.get(YMarkMetadata.METADATA.TITLE));
        prop.putXML("desc", metadata.get(YMarkMetadata.METADATA.DESCRIPTION));
        prop.put("keywords", putTags(document.dc_subject(','), "keywords"));
        prop.put("autotags", putTags(YMarkAutoTagger.autoTag(document, 5, sb.tables.bookmarks.getTags(bmk_user)), "autotags"));
View Full Code Here

Examples of org.apache.commons.modeler.Registry.loadMetadata()

            ObjectName objectName = new ObjectName("Catalina:type=StoreConfig" );
            if (!mserver.isRegistered(objectName)) {
                descriptor = this.getClass().getResourceAsStream(
                        "mbeans-descriptors.xml");
                Registry registry = MBeanUtils.createRegistry();
                registry.loadMetadata(descriptor);
                mserver.registerMBean(getManagedBean(storeConfig), objectName);
            }
        } catch (Exception ex) {
            log.error("createMBean register MBean", ex);
View Full Code Here

Examples of org.apache.commons.modeler.Registry.loadMetadata()

            ObjectName objectName = new ObjectName("Catalina:type=StoreConfig" );
            if (!mserver.isRegistered(objectName)) {
                descriptor = this.getClass().getResourceAsStream(
                        "mbeans-descriptors.xml");
                Registry registry = MBeanUtils.createRegistry();
                registry.loadMetadata(descriptor);
                mserver.registerMBean(getManagedBean(storeConfig), objectName);
            }
        } catch (Exception ex) {
            log.error("createMBean register MBean", ex);
View Full Code Here

Examples of org.apache.commons.modeler.Registry.loadMetadata()

            ObjectName objectName = new ObjectName("Catalina:type=StoreConfig" );
            if (!mserver.isRegistered(objectName)) {
                descriptor = this.getClass().getResourceAsStream(
                        "mbeans-descriptors.xml");
                Registry registry = MBeanUtils.createRegistry();
                registry.loadMetadata(descriptor);
                mserver.registerMBean(getManagedBean(storeConfig), objectName);
            }
        } catch (Exception ex) {
            log.error("createMBean register MBean", ex);
View Full Code Here

Examples of org.codehaus.ivory.IvoryServiceDesc.loadMetaData()

       
        // Initialize the service description by introspection
        super.initServiceDesc( service, msgContext );
       
        // After axis does it's thing, load our own metadata.   
        serviceDescription.loadMetaData();
    }
}
View Full Code Here

Examples of org.geotools.mbtiles.MBTilesFile.loadMetaData()

    public MBTilesReader(Object source, Hints hints) throws IOException {
        sourceFile = MBTilesFormat.getFileFromSource(source);

        MBTilesFile file = new MBTilesFile(sourceFile);

        metadata = file.loadMetaData();
       
        try {
            bounds = ReferencedEnvelope.create(metadata.getBounds(), WGS_84).transform(SPHERICAL_MERCATOR, true);
        } catch (Exception e) {
            bounds = null;
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.