net.sourceforge.pebble.decorator
Class AbstractTagsDecorator

java.lang.Object
  extended by net.sourceforge.pebble.decorator.ContentDecoratorSupport
      extended by net.sourceforge.pebble.decorator.AbstractTagsDecorator
All Implemented Interfaces:
ContentDecorator
Direct Known Subclasses:
BlogTagsDecorator, TechnoratiTagsDecorator

public abstract class AbstractTagsDecorator
extends ContentDecoratorSupport

Generates tag links for inclusion in the body of blog entries, when rendered as HTML.

Author:
Simon Brown

Constructor Summary
AbstractTagsDecorator()
           
 
Method Summary
 void decorate(ContentDecoratorContext context, BlogEntry blogEntry)
          Decorates the specified blog entry.
abstract  java.lang.String getBaseUrl(BlogEntry blogEntry)
          Gets the base URL for tag links, complete with trailing slash.
 
Methods inherited from class net.sourceforge.pebble.decorator.ContentDecoratorSupport
decorate, decorate, decorate, getBlog, setBlog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTagsDecorator

public AbstractTagsDecorator()
Method Detail

decorate

public void decorate(ContentDecoratorContext context,
                     BlogEntry blogEntry)
Decorates the specified blog entry.

Specified by:
decorate in interface ContentDecorator
Overrides:
decorate in class ContentDecoratorSupport
Parameters:
context - the context in which the decoration is running
blogEntry - the blog entry to be decorated if something goes wrong when running the decorator

getBaseUrl

public abstract java.lang.String getBaseUrl(BlogEntry blogEntry)
Gets the base URL for tag links, complete with trailing slash.

Parameters:
blogEntry - the owning BlogEntry
Returns:
a URL as a String


Copyright © 2003-2006, Simon Brown. All Rights Reserved.