Examples of Tag


Examples of de.anomic.data.BookmarksDB.Tag

   
    public static Iterator<String> getFolderList(final String root, Iterator<Tag> tagIterator) {
       
        final Set<String> folders = new TreeSet<String>();
        String path = "";
        Tag tag;
       
        while (tagIterator.hasNext()) {
            tag=tagIterator.next();         
            if (tag.getFriendlyName().startsWith(("/".equals(root) ? root : root+"/"))) {
                path = tag.getFriendlyName();
                path = BookmarkHelper.cleanTagsString(path);                 
                while(path.length() > 0 && !path.equals(root)){
                    folders.add(path);                 
                    path = path.replaceAll("(/.[^/]*$)", "");   // create missing folders in path
                }                  
View Full Code Here

Examples of de.codecentric.moviedatabase.domain.Tag

  public InMemoryMovieService(){
    // let the dummy Movie have always the same ID to test it easily via command line tools / unit tests
    Movie movie = new Movie(UUID.fromString("240342ea-84c8-415f-b1d5-8e4376191aeb"),
        "Star Wars","In einer Galaxie weit, weit entfernt",
        new Date());
    Tag tag = new Tag("Science Fiction");
    movie.getTags().add(tag);
    idToMovieMap.put(movie.getId(), movie);
    Set<Movie> movies = new HashSet<Movie>();
    movies.add(movie);
    tagToMoviesMap.put(tag, movies);
View Full Code Here

Examples of de.sebastianbenz.task.Tag

  public static Tag from(String name) {
    return create(name, null, 0, 0);
  }

  public static Tag create(String name, String value, int offset, int length) {
    Tag tag = TaskFactory.eINSTANCE.createTag();
    tag.setLength(length);
    tag.setOffset(offset);
    tag.setName(name);
    tag.setValue(value);
    return tag;
  }
View Full Code Here

Examples of edu.isi.karma.rep.metadata.Tag

    CommandHistory.setIsHistoryEnabled(true);
    CommandHistory.setHistorySaver(workspace.getId(), new R2RMLAlignmentFileSaver(workspace));
           
    // Initialize the Outlier tag
    Tag outlierTag = new Tag(TagName.Outlier, Color.Red);
    workspace.getTagsContainer().addTag(outlierTag);

    // Put all created worksheet models in the view.
    updateContainer.add(new WorksheetListUpdate());
   
View Full Code Here

Examples of edu.stanford.nlp.ling.Tag

    if (useGT) {
      unknownGTTrainer.train(tw, weight);
    }

    String word = tw.word();
    Label tagL = new Tag(tw.tag());
    String first = word.substring(0, 1);
    if (useUnicodeType) {
      char ch = word.charAt(0);
      int type = Character.getType(ch);
      if (type != Character.OTHER_LETTER) {
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.modules.defecttracker.models.Tag

   */
  private void updateFields() {
    if (model.getTags() != null) {
      lmTags.clear();
      Iterator<Tag> tagsI = model.getTags().iterator();
      Tag nextTag;
      while (tagsI.hasNext()) {
        nextTag = tagsI.next();
        lmTags.addElement(nextTag.getName());
      }
    }

    checkIfUpdated();
  }
View Full Code Here

Examples of entagged.audioformats.Tag

  public String[] createFrom(AudioFile audioFile, Integer bitrate)
      throws MissingValueException {
    ArrayList result = new ArrayList();
    StringBuffer buffer = new StringBuffer();
    ArrayList missingTags = new ArrayList();
    Tag tag = audioFile.getTag();
    Iterator sectionIt = sections.iterator();
    while (sectionIt.hasNext()) {
      buffer.delete(0, buffer.length());
      Section current = (Section) sectionIt.next();
      if (current.fileDirectory) {
        String absParentPath = audioFile.getParentFile()
            .getAbsolutePath();
        String[] splitted = saveSplit(absParentPath, File.separator);
        for (int i = 0; i < splitted.length; i++) {
          result.add(splitted[i]);
        }
      } else {
        for (int i = 0; i < current.parts.length; i++) {
          if (current.parts[i] instanceof String) {
            buffer.append(current.parts[i].toString());
          } else {
            int index = ((Integer) current.parts[i]).intValue();
            String value = null;
            switch (index) {
            case 0:
              value = tag.getFirstArtist();
              break;
            case 1:
              value = tag.getFirstAlbum();
              break;
            case 2:
              value = tag.getFirstTitle();
              break;
            case 3:
              value = tag.getFirstTrack();
              break;
            case 4:
              value = tag.getFirstGenre();
              break;
            case 5:
              value = tag.getFirstYear();
              break;
            case 6:
              value = tag.getFirstComment();
              break;
            case 7:
              if (bitrate != null) {
                value = bitrate.toString();
              } else {
View Full Code Here

Examples of entity.Tag

    public Tag getTag() {
        if(tag == null) {
            tag = (Tag)JsfUtil.getObjectFromRequestParameter("jsfcrud.currentTag", converter, null);
        }
        if(tag == null) {
            tag = new Tag();
        }
        return tag;
    }
View Full Code Here

Examples of er.indexing.example.eof.Tag

   
    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());
            EOQualifier groupQualifier = new EOKeyValueQualifier("assetGroup.name", EOQualifier.QualifierOperatorEqual, tag.name());
            log.info("fileStore: " + fileStore.findGlobalIDs(tagQualifier).count());
            log.info("eofStore: " + eofStore.findGlobalIDs(tagQualifier).count());
            log.info("fileStore: " + fileStore.findGlobalIDs(groupQualifier).count());
            log.info("eofStore: " + eofStore.findGlobalIDs(groupQualifier).count());
           
            String newName = "cooltest";
            tagQualifier = new EOKeyValueQualifier("tags.name", com.webobjects.eocontrol.EOQualifier.QualifierOperatorEqual, newName);
            tag.setName(newName + " " + System.currentTimeMillis());
            ec.saveChanges();
           
            assetGroup.setName(newName + "  " + System.currentTimeMillis());
            ec.saveChanges();
            log.info("fileStore 1: " + fileStore.findGlobalIDs(tagQualifier).count());
View Full Code Here

Examples of facebook4j.Tag

            JSONArray list = json.getJSONArray("data");
            final int size = list.length();
            ResponseList<Tag> tags = new ResponseListImpl<Tag>(size, json);
            for (int i = 0; i < size; i++) {
                JSONObject tagJSONObject = list.getJSONObject(i);
                Tag tag = new TagJSONImpl(tagJSONObject);
                if (conf.isJSONStoreEnabled()) {
                    DataObjectFactoryUtil.registerJSONObject(tag, tagJSONObject);
                }
                tags.add(tag);
            }
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.