public class FilterDescription extends Object
FilterDescription's. A user can provide logic to control comment and
variable names for filters in the generated code. The intention is to make
the generated SEP easier to understand reducing cost to rectify errors.
FilterDescriptionProducer are registered as producers of descriptions.
| Modifier and Type | Field and Description |
|---|---|
String |
comment
Human readable comment to be associated with this filter in the generated
code of the SEP.
|
static FilterDescription |
DEFAULT_FILTER |
Class<? extends com.fluxtion.runtime.event.Event> |
eventClass
the event class for this filter.
|
static FilterDescription |
INVERSE_FILTER |
boolean |
isFiltered
Indicates presence of filtering, false value means match all values.
|
boolean |
isIntFilter
boolean value indicating String or integer based filtering.
|
static FilterDescription |
NO_FILTER |
String |
stringValue
Value used by the SEP to determine which decision branch to navigate.
|
int |
value
Value used by the SEP to determine which decision branch to navigate.
|
String |
variableName
User suggested identifier for this filter in the generated SEP code.
|
| Constructor and Description |
|---|
FilterDescription(Class<? extends com.fluxtion.runtime.event.Event> eventClass) |
FilterDescription(Class<? extends com.fluxtion.runtime.event.Event> eventClass,
int value) |
FilterDescription(Class<? extends com.fluxtion.runtime.event.Event> eventClass,
String value) |
| Modifier and Type | Method and Description |
|---|---|
static FilterDescription |
build(Object input) |
FilterDescription |
changeClass(Class<? extends com.fluxtion.runtime.event.Event> newClass) |
boolean |
equals(Object obj) |
int |
hashCode() |
public static final FilterDescription NO_FILTER
public static final FilterDescription INVERSE_FILTER
public static final FilterDescription DEFAULT_FILTER
public final int value
public final String stringValue
public final boolean isIntFilter
public boolean isFiltered
public Class<? extends com.fluxtion.runtime.event.Event> eventClass
public String comment
public String variableName
public FilterDescription(Class<? extends com.fluxtion.runtime.event.Event> eventClass)
public FilterDescription(Class<? extends com.fluxtion.runtime.event.Event> eventClass, int value)
public static FilterDescription build(Object input)
public FilterDescription changeClass(Class<? extends com.fluxtion.runtime.event.Event> newClass)
Copyright © 2022. All rights reserved.