net.sourceforge.pebble.decorator
Class ContentDecoratorSupport

java.lang.Object
  extended by net.sourceforge.pebble.decorator.ContentDecoratorSupport
All Implemented Interfaces:
ContentDecorator
Direct Known Subclasses:
AbstractTagsDecorator, BlogCategoriesDecorator, DisableCommentsDecorator, DisableResponseDecorator, DisableTrackBacksDecorator, EscapeMarkupDecorator, ExcerptDecorator, HideUnapprovedResponsesDecorator, HtmlDecorator, NoFollowDecorator, PhotoDecorator, RadeoxDecorator, ReadMoreDecorator, RelativeUriDecorator, TrackBackAutoDiscoveryDecorator

public abstract class ContentDecoratorSupport
extends java.lang.Object
implements ContentDecorator

Starting point for BlogEntryDecorator implementations to extend.

Author:
Simon Brown

Constructor Summary
ContentDecoratorSupport()
           
 
Method Summary
 void decorate(ContentDecoratorContext context, BlogEntry blogEntry)
          Decorates the specified blog entry.
 void decorate(ContentDecoratorContext context, Comment comment)
          Decorates the specified comment.
 void decorate(ContentDecoratorContext context, StaticPage staticPage)
          Decorates the specified static page.
 void decorate(ContentDecoratorContext context, TrackBack trackBack)
          Decorates the specified TrackBack.
 Blog getBlog()
          Gets the blog to which this decorator is associated.
 void setBlog(Blog blog)
          Sets the blog to which this decorator is associated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentDecoratorSupport

public ContentDecoratorSupport()
Method Detail

getBlog

public Blog getBlog()
Gets the blog to which this decorator is associated.

Specified by:
getBlog in interface ContentDecorator
Returns:
a Blog instance

setBlog

public void setBlog(Blog blog)
Sets the blog to which this decorator is associated.

Specified by:
setBlog in interface ContentDecorator
Parameters:
blog - a Blog instance

decorate

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

Specified by:
decorate in interface ContentDecorator
Parameters:
context - the context in which the decoration is running
blogEntry - the blog entry to be decorated

decorate

public void decorate(ContentDecoratorContext context,
                     Comment comment)
Decorates the specified comment.

Specified by:
decorate in interface ContentDecorator
Parameters:
context - the context in which the decoration is running
comment - the comment to be decorated

decorate

public void decorate(ContentDecoratorContext context,
                     TrackBack trackBack)
Decorates the specified TrackBack.

Specified by:
decorate in interface ContentDecorator
Parameters:
context - the context in which the decoration is running
trackBack - the TrackBack to be decorated

decorate

public void decorate(ContentDecoratorContext context,
                     StaticPage staticPage)
Decorates the specified static page.

Specified by:
decorate in interface ContentDecorator
Parameters:
context - the context in which the decoration is running
staticPage - the static page to be decorated


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