public class FastRulesMatcher extends SemanticProcessor implements com.exalead.util.Checkable, java.io.Serializable
SemanticProcessor.FromDataModel, SemanticProcessor.Transformer<T>, SemanticProcessor.Visitor
Modifier and Type | Field and Description |
---|---|
boolean |
allowsExprStartingBySeparators |
static boolean |
DEFAULT_ALLOWS_EXPR_STARTING_BY_SEPARATORS |
java.lang.String |
resourceDir |
contexts, dataModelClass, dataModelProperty, dataModelState, DEFAULT_DISABLED, disabled, fromDataModel, name
Constructor and Description |
---|
FastRulesMatcher() |
FastRulesMatcher(FastRulesMatcher o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(SemanticProcessor.Transformer<T> transformer,
T[] t) |
void |
accept(SemanticProcessor.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this FastRulesMatcher.
|
static FastRulesMatcher |
fromString(java.lang.String s)
String representation of this FastRulesMatcher.
|
java.lang.String |
getResourceDir()
Directory containing the matcher resources.
|
boolean |
isAllowsExprStartingBySeparators()
If you have expressions starting with a separator (",", ";", "&", ...), then you must set this option to true.
|
FastRulesMatcher |
makeCopy()
Creates and returns a deep copy of this FastRulesMatcher.
|
static FastRulesMatcher |
readFrom(java.io.InputStream is)
Read this FastRulesMatcher from an XML fragment.
|
void |
setAllowsExprStartingBySeparators(boolean allowsExprStartingBySeparators)
If you have expressions starting with a separator (",", ";", "&", ...), then you must set this option to true.
|
void |
setResourceDir(java.lang.String resourceDir)
Directory containing the matcher resources.
|
java.lang.String |
toString()
String representation of this FastRulesMatcher.
|
FastRulesMatcher |
withAllowsExprStartingBySeparators(boolean allowsExprStartingBySeparators) |
FastRulesMatcher |
withAllowsExprStartingBySeparators(java.lang.Boolean allowsExprStartingBySeparators) |
FastRulesMatcher |
withContexts(java.lang.String contexts) |
FastRulesMatcher |
withDataModelClass(java.lang.String dataModelClass) |
FastRulesMatcher |
withDataModelProperty(java.lang.String dataModelProperty) |
FastRulesMatcher |
withDataModelState(java.lang.String dataModelState) |
FastRulesMatcher |
withDisabled(boolean disabled) |
FastRulesMatcher |
withDisabled(java.lang.Boolean disabled) |
FastRulesMatcher |
withFromDataModel(SemanticProcessor fromDataModel) |
FastRulesMatcher |
withName(java.lang.String name) |
FastRulesMatcher |
withResourceDir(java.lang.String resourceDir) |
void |
writeTo(java.io.OutputStream os)
Write this FastRulesMatcher as an XML fragment
|
getContexts, getDataModelClass, getDataModelProperty, getDataModelState, getFromDataModel, getName, isDisabled, setContexts, setDataModelClass, setDataModelProperty, setDataModelState, setDisabled, setFromDataModel, setName
public java.lang.String resourceDir
public boolean allowsExprStartingBySeparators
public static final boolean DEFAULT_ALLOWS_EXPR_STARTING_BY_SEPARATORS
public FastRulesMatcher()
public FastRulesMatcher(FastRulesMatcher o)
public FastRulesMatcher withName(java.lang.String name)
withName
in class SemanticProcessor
public FastRulesMatcher withContexts(java.lang.String contexts)
withContexts
in class SemanticProcessor
public FastRulesMatcher withFromDataModel(SemanticProcessor fromDataModel)
public FastRulesMatcher withDataModelState(java.lang.String dataModelState)
withDataModelState
in class SemanticProcessor
public FastRulesMatcher withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class SemanticProcessor
public FastRulesMatcher withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class SemanticProcessor
public FastRulesMatcher withDisabled(boolean disabled)
withDisabled
in class SemanticProcessor
public FastRulesMatcher withDisabled(java.lang.Boolean disabled)
withDisabled
in class SemanticProcessor
public void setResourceDir(java.lang.String resourceDir)
public java.lang.String getResourceDir()
public FastRulesMatcher withResourceDir(java.lang.String resourceDir)
public void setAllowsExprStartingBySeparators(boolean allowsExprStartingBySeparators)
public boolean isAllowsExprStartingBySeparators()
public FastRulesMatcher withAllowsExprStartingBySeparators(boolean allowsExprStartingBySeparators)
public FastRulesMatcher withAllowsExprStartingBySeparators(java.lang.Boolean allowsExprStartingBySeparators)
public FastRulesMatcher makeCopy()
makeCopy
in class SemanticProcessor
public static FastRulesMatcher readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class SemanticProcessor
javax.xml.bind.JAXBException
java.io.IOException
public static FastRulesMatcher fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class SemanticProcessor
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class SemanticProcessor
com.exalead.util.TypedException
public void accept(SemanticProcessor.Visitor visitor) throws com.exalead.util.TypedException
accept
in class SemanticProcessor
com.exalead.util.TypedException
public <T> T accept(SemanticProcessor.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class SemanticProcessor
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.