Package net.sourceforge.pebble.domain

Examples of net.sourceforge.pebble.domain.Tag


        StringBuffer tags = new StringBuffer();
        Iterator<Tag> currentEntryTags = entry.getAllTags().iterator();
       
        //Build a string out of blog entry tags and seperate them by comma
        while (currentEntryTags.hasNext()) {
          Tag currentTag = currentEntryTags.next();
          if (currentTag.getName() != null && !currentTag.getName().equals("")) {
             tags.append(currentTag.getName());
             if (currentEntryTags.hasNext()) {
              tags.append(",");
            }
          }
        }
View Full Code Here


    post.put(CATEGORIES, categories);

    Vector tags = new Vector();
    it = entry.getTagsAsList().iterator();
    while (it.hasNext()) {
      Tag tag = (Tag)it.next();
      tags.add(tag.getName());
    }
    post.put(TAGS, tags);

    if (entry.getAttachment() != null) {
      Hashtable attachment = new Hashtable();
View Full Code Here

    buf.append(I18n.getMessage(content.getBlog(), resourceKey));
        buf.append(" : </span>");

        while (tags.hasNext()) {

          Tag tag = tags.next();

      if (tag.getName() != null && !tag.getName().equals("")) {

        buf.append("<a href=\"");
        buf.append(baseUrl);
        buf.append(tag.getName() + "\"");
        buf.append(target);
        buf.append(" rel=\"tag\">");
        buf.append(tag.getName());
        buf.append("</a>");

        if (tags.hasNext()) {
        buf.append(", ");
        }
View Full Code Here

TOP

Related Classes of net.sourceforge.pebble.domain.Tag

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.