info.magnolia.module.rssaggregator.importhandler
Class FilterPredicate

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

public class FilterPredicate
extends Object

A filter predicate that can be applied to a feed entry.

A filter predicate typically belongs to a AggregateFilter which in turn is defined for an AggregateFeed.

Author:
Rob van der Linden Vooren
See Also:
AggregateFilter, SyndFeed, AggregateFeed

Constructor Summary
FilterPredicate(info.magnolia.module.rssaggregator.importhandler.FilterPredicate.Condition condition, String property, String regularExpression)
          Create a new FilterPredicate for the given condition, property and regularExpression.
 
Method Summary
 info.magnolia.module.rssaggregator.importhandler.FilterPredicate.Condition getCondition()
          Return the condition for this predicate.
 String getProperty()
          Return the property of the feed this predicate applies to.
 String getRegularExpression()
          Return the regular expression for this predicate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterPredicate

public FilterPredicate(info.magnolia.module.rssaggregator.importhandler.FilterPredicate.Condition condition,
                       String property,
                       String regularExpression)
Create a new FilterPredicate for the given condition, property and regularExpression.

Parameters:
condition - the condition for this predicate
property - the property of the feed this predicate applies to (eg. 'author')
regularExpression - the regular expression the value of the property should or should not match
Method Detail

getCondition

public info.magnolia.module.rssaggregator.importhandler.FilterPredicate.Condition getCondition()
Return the condition for this predicate.

Returns:
the condition for this predicate

getProperty

public String getProperty()
Return the property of the feed this predicate applies to.

Returns:
the property of the feed this predicate applies to

getRegularExpression

public String getRegularExpression()
Return the regular expression for this predicate.

Returns:
the regular expression for this predicate


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