public class RecurrentSepaGroupBuilder extends AbstractGroupBuilder
| Constructor and Description |
|---|
RecurrentSepaGroupBuilder(String groupName,
List<Matcher> blacklist) |
| Modifier and Type | Method and Description |
|---|---|
BookingGroup |
createGroup(WrappedBooking booking)
Creates possible categories for this booking.
|
Group.Type |
getGroupType() |
boolean |
groupShouldBeCreated(WrappedBooking booking)
Asserts wether a categorizer should be created for the given booking.
|
static boolean |
isSepaBooking(WrappedBooking booking,
List<Matcher> blacklist)
Assert if the given booking is a sepa booking.
|
public boolean groupShouldBeCreated(WrappedBooking booking)
GroupBuildergroupShouldBeCreated in interface GroupBuildergroupShouldBeCreated in class AbstractGroupBuilderbooking - the booking to be groupedpublic BookingGroup createGroup(WrappedBooking booking)
GroupBuilderThe array defines the priority of the categories. If the first entry of the array will result an valid category the others will be invalid for this booking.
createGroup in interface GroupBuildercreateGroup in class AbstractGroupBuilderbooking - the booking to be groupedpublic static boolean isSepaBooking(WrappedBooking booking, List<Matcher> blacklist)
If a blacklist is defined each entry will be matched with the given input. If all non null attribute values of the blacklist entry matches the booking will be refused.
booking - the booking to be assertedblacklist - booking templates to be falsepublic Group.Type getGroupType()
getGroupType in interface GroupBuildergetGroupType in class AbstractGroupBuilderCopyright © 2018. All rights reserved.