Interface Filter
-
- All Known Implementing Classes:
AbstractFilter
public interface FilterGiven an iCalendar object applies some sort of transform to the object. This may involve adding, removing or changing properties.Standard filters will carry out global processing. Other filters may be defined which are specific to a connection or item type.
Each input filter will be called when items are read to be added.
When comparing items the addDifferSkipItems will be called to build a list of properties, components etc to be ignored when comparing. There is no need to transform either entity as the compare result will not take tthe ignored fields into account.
- Author:
- douglm
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDifferSkipItems(List<Object> skipList)Called to add items to the skip list for the ical differ.ietf.params.xml.ns.icalendar_2.IcalendarTypedoFilter(ietf.params.xml.ns.icalendar_2.IcalendarType val)voidinit(Subscription sub)Initialise the filter.
-
-
-
Method Detail
-
init
void init(Subscription sub) throws SynchException
Initialise the filter.- Parameters:
sub- the subscription- Throws:
SynchException- on fatal error
-
doFilter
ietf.params.xml.ns.icalendar_2.IcalendarType doFilter(ietf.params.xml.ns.icalendar_2.IcalendarType val) throws SynchException- Parameters:
val- the object to process- Returns:
- null for discarded object, otherwise possibly modified object
- Throws:
SynchException- on fatal error
-
addDifferSkipItems
void addDifferSkipItems(List<Object> skipList) throws SynchException
Called to add items to the skip list for the ical differ.- Parameters:
skipList- list of items to skip - properties parameters etc- Throws:
SynchException- on fatal error
-
-