Dekoh platform API

dekoh.portal.syndication.aggregator.core
Class SummarizingTransformer

java.lang.Object
  extended by dekoh.portal.syndication.aggregator.core.AggregatedItemTransformer.Adapter
      extended by dekoh.portal.syndication.aggregator.core.SummarizingTransformer
All Implemented Interfaces:
AggregatedItemTransformer

public class SummarizingTransformer
extends AggregatedItemTransformer.Adapter
implements AggregatedItemTransformer

SummarizingTransformer will trim the description and content of each feed Item if its more than maxDescriptionChar.

Since:
Oct 21, 2007

Nested Class Summary
 
Nested classes/interfaces inherited from interface dekoh.portal.syndication.aggregator.core.AggregatedItemTransformer
AggregatedItemTransformer.Adapter, AggregatedItemTransformer.TransformationContext
 
Constructor Summary
SummarizingTransformer()
          Same as calling SummarizingTransformer.SummarizingTransformer(int) with 100.
SummarizingTransformer(int maxLength)
           
 
Method Summary
 boolean transform(AggregatedItemTransformer.TransformationContext context, Item rssFeedItem)
           
 
Methods inherited from class dekoh.portal.syndication.aggregator.core.AggregatedItemTransformer.Adapter
begin, end
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface dekoh.portal.syndication.aggregator.core.AggregatedItemTransformer
begin, end
 

Constructor Detail

SummarizingTransformer

public SummarizingTransformer()
Same as calling SummarizingTransformer.SummarizingTransformer(int) with 100.


SummarizingTransformer

public SummarizingTransformer(int maxLength)
Parameters:
maxLength - after which the desc, context of the feed-items will be trimmed.
Method Detail

transform

public boolean transform(AggregatedItemTransformer.TransformationContext context,
                         Item rssFeedItem)
Specified by:
transform in interface AggregatedItemTransformer
Overrides:
transform in class AggregatedItemTransformer.Adapter
Returns:
always true

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers