Examples of MetaData


Examples of javax.faces.view.facelets.Metadata

            int ruleEnd = _rules.size() - 1;

            // now iterate over attributes
            for (Map.Entry<String, TagAttribute> entry : _attributes.entrySet())
            {
                Metadata data = null;

                int i = ruleEnd;

                // First loop is always safe
                do
View Full Code Here

Examples of javax.jdo.metadata.Metadata

        pm = getPM();
        String className = "org.apache.jdo.tck.pc.company.Employee";
        TypeMetadata metadata = pmf.getMetadata(className);
        assertNotNull(ASSERTION_FAILED
                + "metadata must not be null for abstract class " + className, metadata);
        Metadata parent = metadata.getParent();
        assertNotNull(ASSERTION_FAILED
                + "parent metadata must not be null for abstract class " + className, parent);
        String name = metadata.getName();
        String packageName = ((PackageMetadata)parent).getName();
        assertEquals(ASSERTION_FAILED
View Full Code Here

Examples of macromedia.asc.semantics.MetaData

    }

    public void setId(String id)
    {
        if( this.md == null )
            this.md = new MetaData();
        this.md.id = id;
    }
View Full Code Here

Examples of net.sf.archimede.model.metadata.Metadata

        }
    }
   
    private void addMetadata(Folder folder) {
       
        Metadata metadata = new MetadataImpl(folder);
       
        metadata.setName(NodesTypes.DUBLIN_CORE_PREFIX + NodesTypes.DUBLIN_CORE_METADATA_NAME);
       
        Element rootElement = new DefaultElementImpl(metadata, null);
        rootElement.setName(NodesTypes.DUBLIN_CORE_PREFIX + NodesTypes.DUBLIN_CORE_ELEMENT_NAME);
       
        metadata.setRootElement(rootElement);
       
        List dcElements = new ArrayList();       
       
        for (Iterator it = this.oldFolder.getMetadata().getTitles().iterator(); it.hasNext(); ) {
            Element element = ConversionUtil.createValueElement("dc:title", (String) it.next(), metadata, rootElement);
View Full Code Here

Examples of net.sf.jabref.MetaData

          ArrayList<BibtexEntry> appendedEntries = new ArrayList<BibtexEntry>();
          ArrayList<BibtexEntry> originalEntries = new ArrayList<BibtexEntry>();
          BibtexDatabase database = panel.database();
          BibtexEntry originalEntry;
          NamedCompound ce = new NamedCompound(Globals.lang("Append database"));
          MetaData meta = new MetaData(pr.getMetaData(), pr.getDatabase());

          if (importEntries) { // Add entries
              boolean overwriteOwner = Globals.prefs.getBoolean("overwriteOwner");
              boolean overwriteTimeStamp = Globals.prefs.getBoolean("overwriteTimeStamp");

            for (String key : fromDatabase.getKeySet()){
                originalEntry = fromDatabase.getEntryById(key);
                  BibtexEntry be = (BibtexEntry) (originalEntry.clone());
                  be.setId(Util.createNeutralId());
                  Util.setAutomaticFields(be, overwriteOwner, overwriteTimeStamp);
                  database.insertEntry(be);
                  appendedEntries.add(be);
                  originalEntries.add(originalEntry);
                  ce.addEdit(new UndoableInsertEntry(database, be, panel));
              }
          }

          if (importStrings) {
              for (BibtexString bs : fromDatabase.getStringValues()){
                  if (!database.hasStringLabel(bs.getName())) {
                      database.addString(bs);
                      ce.addEdit(new UndoableInsertString(panel, database, bs));
                  }
              }
          }

          if (importGroups) {
              GroupTreeNode newGroups = meta.getGroups();
              if (newGroups != null) {

                  // ensure that there is always only one AllEntriesGroup
                  if (newGroups.getGroup() instanceof AllEntriesGroup) {
                      // create a dummy group
                      ExplicitGroup group = new ExplicitGroup("Imported",
                              AbstractGroup.INDEPENDENT); // JZTODO lyrics
                      newGroups.setGroup(group);
                      for (int i = 0; i < appendedEntries.size(); ++i)
                          group.addEntry(appendedEntries.get(i));
                  }

                  // groupsSelector is always created, even when no groups
                  // have been defined. therefore, no check for null is
                  // required here
                  frame.groupSelector.addGroups(newGroups, ce);
                  // for explicit groups, the entries copied to the mother fromDatabase have to
                  // be "reassigned", i.e. the old reference is removed and the reference
                  // to the new fromDatabase is added.
                  GroupTreeNode node;
                  ExplicitGroup group;
                  BibtexEntry entry;
                 
                  for (Enumeration<GroupTreeNode> e = newGroups
          .preorderEnumeration(); e.hasMoreElements();) {
          node = e.nextElement();
          if (!(node.getGroup() instanceof ExplicitGroup))
            continue;
          group = (ExplicitGroup) node.getGroup();
          for (int i = 0; i < originalEntries.size(); ++i) {
            entry = originalEntries.get(i);
            if (group.contains(entry)) {
              group.removeEntry(entry);
              group.addEntry(appendedEntries.get(i));
            }
          }
        }
                  frame.groupSelector.revalidateGroups();
              }
          }

          if (importSelectorWords) {
            for (String s : meta){
                  if (s.startsWith(Globals.SELECTOR_META_PREFIX)) {
                      panel.metaData().putData(s, meta.getData(s));
                  }
              }
          }

          ce.end();
View Full Code Here

Examples of net.sf.jmp3renamer.plugins.MusicBrainz.ws2.Metadata

        HttpURLConnection con = (HttpURLConnection) new URL(request).openConnection();
        con.setRequestProperty("User-Agent", "JMP3renamer MusicBrainz Plug-in " + MusicBrainz.VERSION);
        InputStream in = con.getInputStream();

        Object o = unm.unmarshal(in);
        Metadata md = (Metadata) o;
        ReleaseList rl = md.getReleaseList();
        if (rl != null) {
            List<Release> list = rl.getRelease();
            for (Release release : list) {
                MusicBrainzAlbum mba = new MusicBrainzAlbum();
                mba.setTitle(release.getTitle());
View Full Code Here

Examples of net.sourceforge.gpstools.gpx.Metadata

    this.recurso = recurso;
  }

  public GpxType generaGPX(List<HistoricoGPS> historico) throws IOException {

    Metadata metadata = new Metadata();
    metadata.setDesc("Recorrido de " + recurso);
    metadata.setTime(new Date());
    GpxType gpx = new Gpx();
    gpx.setCreator(CREATOR);
    gpx.setMetadata(metadata);

    Trk track = new Trk();
View Full Code Here

Examples of net.sourceforge.jaad.mp4.api.MetaData

            audioFormat = new AudioFormat((float) track.getSampleRate(), bps * 8, track.getChannelCount(), true, false);
    }

    private void parseGaplessInfo(Movie movie) {
        gaplessPadding = track.getLastFramePadding();
        MetaData metaData = movie.getMetaData();
        String iTunSMPB = metaData.get(MetaData.Field.GAPLESS_PLAYBACK);
        if (iTunSMPB != null && iTunSMPB.length() > 0) {
            String[] data = iTunSMPB.trim().split(" ");
            gaplessDelay = Integer.parseInt(data[1], 16);
            gaplessPadding = (int) (track.getSampleDuration(0) - Integer.parseInt(data[2], 16));
        } else {
            //now estimate gapless delay based on the tool
            String tool = metaData.get(MetaData.Field.ENCODER_TOOL);
            if (tool != null && !tool.isEmpty()) {
                if (tool.startsWith("Nero")) {
                    gaplessDelay = (int) (track.getSampleDuration(0) * 2 + 576);
                } else if (tool.startsWith("FAAC")) {
                    gaplessDelay = (int) track.getSampleDuration(0);
View Full Code Here

Examples of net.sourceforge.processdash.ev.EVSnapshot.Metadata

        @Override
        public Component getListCellRendererComponent(JList list, Object value,
                int index, boolean isSelected, boolean cellHasFocus) {

            // use the name of the snapshot as its display value
            Metadata snap = (Metadata) value;
            Component result = super.getListCellRendererComponent(list,
                snap.getName(), index, isSelected, cellHasFocus);

            // place a checkmark icon next to the active snapshot
            if (snap.getId().equals(activeSnapshotId))
                setIcon(DashboardIconFactory.getCheckIcon());
            else
                setIcon(null);

            // display snapshot comments as a tooltip
            String comment = snap.getComment();
            String tooltip = null;
            if (StringUtils.hasValue(comment))
                tooltip = "<html><div style='width:200px'>"
                        + HTMLUtils.escapeEntities(comment) + "</div></html>";
            setToolTipText(tooltip);
View Full Code Here

Examples of nexj.core.meta.Metadata

            sBase = "";
         }

         properties.setProperty(XMLMetadataLoader.BASE_URL_PROPERTY, sBase);

         Metadata metadata = new MetadataLoaderDispatcher().load(getRequiredProperty("root.url"),
            properties, XMLMetadataLoader.VALIDATED_ONLY, null);

         s_logger.info("Version: " + metadata.getVersion());
         s_logger.info("Revision: " + metadata.getRevision());
         s_logger.info("Checksum: " + metadata.getChecksum());
         s_logger.info("Name: " + metadata.getName());
         s_logger.info("Namespace: " + metadata.getNamespace());

         s_logger.info("");
         s_logger.info("Base");
         s_logger.info("Version: " + metadata.getBaseVersion());
         s_logger.info("Checksum: " + metadata.getBaseChecksum());
         s_logger.info("Namespace: " + metadata.getBaseNamespace());

         s_logger.debug("");
         s_logger.debug("Statistics");
         s_logger.debug("Channels: " + metadata.getChannelCount());
         s_logger.debug("Channel Types: " + metadata.getChannelTypeCount());
         s_logger.debug("Class Aspects: " + metadata.getClassAspectCount());
         s_logger.debug("Data Sources: " + metadata.getDataSourceCount());
         s_logger.debug("Flow Macros: " + metadata.getFlowMacroCount());
         s_logger.debug("Formats: " + metadata.getFormatCount());
         s_logger.debug("Interfaces: " + metadata.getInterfaceCount());
         s_logger.debug("Locales: " + metadata.getLocaleCount());
         s_logger.debug("Messages: " + metadata.getMessageCount());
         s_logger.debug("Primitive Privileges: " + metadata.getPrimitivePrivilegeCount());
         s_logger.debug("Transformations: " + metadata.getTransformationCount());
      }
      else
      {
         throw new IllegalArgumentException("Invalid command \"" + sCommand + "\"");
      }
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.