Package com.google.gdata.data

Examples of com.google.gdata.data.Category


  /** Google data labeling namespace */
  private static final String gLabels = Namespaces.g + "/labels";

  private static Category newLabel(String termAndLabel) {
    return new Category(gLabels, gLabels + "#" + termAndLabel, termAndLabel);
  }
View Full Code Here


  
    // these are strings like "http://schemas.google.com/g/2005#event"
    if (entry.getCategories() != null) {
      List categoryList = new LinkedList();
      for (Iterator ci = entry.getCategories().iterator(); ci.hasNext(); ) {
        Category category = (Category) ci.next();
        categoryList.add( Value.getStringValue(category.getTerm()) );
      }
      map.put(PROPNAME_CATEGORY, new SimpleProperty(categoryList));
    }
   
    if (entry.getAuthors() != null) {
View Full Code Here

   *    instead.
   */
  @Deprecated
  public void addFolder(Person owner, String folderName) {
    String scheme = FOLDERS_NAMESPACE + "/" + owner.getEmail();
    Category folderCategory = new Category(scheme, folderName, folderName);
    this.getCategories().add(folderCategory);
  }
View Full Code Here

  /** Google data labeling namespace */
  private static final String gLabels = Namespaces.g + "/labels";

  private static Category newLabel(String termAndLabel) {
    return new Category(gLabels, gLabels + "#" + termAndLabel, termAndLabel);
  }
View Full Code Here

   *    instead.
   */
  @Deprecated
  public void addFolder(Person owner, String folderName) {
    String scheme = FOLDERS_NAMESPACE + "/" + owner.getEmail();
    Category folderCategory = new Category(scheme, folderName, folderName);
    this.getCategories().add(folderCategory);
  }
View Full Code Here

    do {
      System.out.println("\nEnter keyword or empty line when done: ");
      keywordTerm = readLine();
      // creates categories whose scheme is KEYWORD_SCHEME
      Category category = new Category(YouTubeNamespace.KEYWORD_SCHEME,
          keywordTerm);
      categoryFilter.addCategory(category);
      // keeps track of concatenated list of keywords entered so far
      if(!"".equals(keywordTerm))
        allKeywords += keywordTerm + ", ";
View Full Code Here

    
      // these are strings like "http://schemas.google.com/g/2005#event"
      if (entry.getCategories() != null) {
        List categoryList = new LinkedList();
        for (Iterator ci = entry.getCategories().iterator(); ci.hasNext(); ) {
          Category category = (Category) ci.next();
          categoryList.add( Value.getStringValue(category.getTerm()) );
        }
        map.put(PROPNAME_CATEGORY, new SimpleProperty(categoryList));
      }
     
      if (entry.getAuthors() != null) {
View Full Code Here

TOP

Related Classes of com.google.gdata.data.Category

Copyright © 2018 www.massapicom. 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.