info.magnolia.module.rssaggregator.importhandler
Class AggregateFeed

java.lang.Object
  extended by info.magnolia.module.rssaggregator.importhandler.AggregateFeed

public class AggregateFeed
extends Object

A named set of feed channels.

Author:
Rob van der Linden Vooren

Constructor Summary
AggregateFeed(String name)
          Create a new AggregateFeed with the given name.
 
Method Summary
 void addFeedChannel(FeedChannel feedChannel)
          Add a feed channel to this aggregate feed.
 boolean equals(Object that)
          
 Set<FeedChannel> getChannels()
          Return the channels known to this aggregate.
 String getName()
          Return the name of this aggregate.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AggregateFeed

public AggregateFeed(String name)
Create a new AggregateFeed with the given name.

Parameters:
name - name of this aggregate feed (must not be blank)
Throws:
IllegalArgumentException - if the given name is blank
Method Detail

addFeedChannel

public void addFeedChannel(FeedChannel feedChannel)
Add a feed channel to this aggregate feed. Only one reference to any given channel will be maintained, regardless whether the same channel is being added multiple times.

Parameters:
feedChannel - the feed channel to add to this aggregate feed (must not be null)
Throws:
IllegalArgumentException - if the given aggregateChannelis null

equals

public boolean equals(Object that)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object

getName

public String getName()
Return the name of this aggregate.

Returns:
the name of this aggregate

getChannels

public Set<FeedChannel> getChannels()
Return the channels known to this aggregate.

Returns:
the channels known to this aggregate


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.