Package com.fluxtion.builder.generation
Class FilterDescription
java.lang.Object
com.fluxtion.builder.generation.FilterDescription
public class FilterDescription
extends java.lang.Object
Customises the generated source files to provide user controlled
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.
- Author:
- Greg Higgins
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringcommentHuman readable comment to be associated with this filter in the generated code of the SEP.static FilterDescriptionDEFAULT_FILTERjava.lang.Class<? extends com.fluxtion.api.event.Event>eventClassthe event class for this filter.static FilterDescriptionINVERSE_FILTERbooleanisFilteredIndicates presence of filtering, false value means match all values.booleanisIntFilterboolean value indicating String or integer based filtering.static FilterDescriptionNO_FILTERjava.lang.StringstringValueValue used by the SEP to determine which decision branch to navigate.intvalueValue used by the SEP to determine which decision branch to navigate.java.lang.StringvariableNameUser suggested identifier for this filter in the generated SEP code. -
Constructor Summary
Constructors Constructor Description FilterDescription(java.lang.Class<? extends com.fluxtion.api.event.Event> eventClass)FilterDescription(java.lang.Class<? extends com.fluxtion.api.event.Event> eventClass, int value)FilterDescription(java.lang.Class<? extends com.fluxtion.api.event.Event> eventClass, java.lang.String value) -
Method Summary
Modifier and Type Method Description FilterDescriptionchangeClass(java.lang.Class<? extends com.fluxtion.api.event.Event> newClass)booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()
-
Field Details
-
NO_FILTER
-
INVERSE_FILTER
-
DEFAULT_FILTER
-
value
public final int valueValue used by the SEP to determine which decision branch to navigate. If integer filtering is used. -
stringValue
public final java.lang.String stringValueValue used by the SEP to determine which decision branch to navigate. If String filtering is used -
isIntFilter
public final boolean isIntFilterboolean value indicating String or integer based filtering. -
isFiltered
public boolean isFilteredIndicates presence of filtering, false value means match all values. -
eventClass
public java.lang.Class<? extends com.fluxtion.api.event.Event> eventClassthe event class for this filter. -
comment
public java.lang.String commentHuman readable comment to be associated with this filter in the generated code of the SEP. Depending upon the target language this value may be mutated to suit the target language rules. -
variableName
public java.lang.String variableNameUser suggested identifier for this filter in the generated SEP code. Depending upon the target language this value may be mutated to suit the relevant rules.
-
-
Constructor Details
-
FilterDescription
public FilterDescription(java.lang.Class<? extends com.fluxtion.api.event.Event> eventClass) -
FilterDescription
public FilterDescription(java.lang.Class<? extends com.fluxtion.api.event.Event> eventClass, int value) -
FilterDescription
public FilterDescription(java.lang.Class<? extends com.fluxtion.api.event.Event> eventClass, java.lang.String value)
-
-
Method Details
-
changeClass
public FilterDescription changeClass(java.lang.Class<? extends com.fluxtion.api.event.Event> newClass) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-