public class RulesMatcher extends SemanticProcessor implements com.exalead.util.Checkable, java.io.Serializable
SemanticProcessor.FromDataModel, SemanticProcessor.Transformer<T>, SemanticProcessor.Visitor
Modifier and Type | Field and Description |
---|---|
java.lang.String |
language |
java.lang.String |
resourceFile |
contexts, dataModelClass, dataModelProperty, dataModelState, DEFAULT_DISABLED, disabled, fromDataModel, name
Constructor and Description |
---|
RulesMatcher() |
RulesMatcher(RulesMatcher 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 RulesMatcher.
|
static RulesMatcher |
fromString(java.lang.String s)
String representation of this RulesMatcher.
|
java.lang.String |
getLanguage()
Language for which this processor is activated.
|
java.lang.String |
getResourceFile()
URL for the resource (data://, file;// or resource://).
|
RulesMatcher |
makeCopy()
Creates and returns a deep copy of this RulesMatcher.
|
static RulesMatcher |
readFrom(java.io.InputStream is)
Read this RulesMatcher from an XML fragment.
|
void |
setLanguage(java.lang.String language)
Language for which this processor is activated.
|
void |
setResourceFile(java.lang.String resourceFile)
URL for the resource (data://, file;// or resource://).
|
java.lang.String |
toString()
String representation of this RulesMatcher.
|
RulesMatcher |
withContexts(java.lang.String contexts) |
RulesMatcher |
withDataModelClass(java.lang.String dataModelClass) |
RulesMatcher |
withDataModelProperty(java.lang.String dataModelProperty) |
RulesMatcher |
withDataModelState(java.lang.String dataModelState) |
RulesMatcher |
withDisabled(boolean disabled) |
RulesMatcher |
withDisabled(java.lang.Boolean disabled) |
RulesMatcher |
withFromDataModel(SemanticProcessor fromDataModel) |
RulesMatcher |
withLanguage(java.lang.String language) |
RulesMatcher |
withName(java.lang.String name) |
RulesMatcher |
withResourceFile(java.lang.String resourceFile) |
void |
writeTo(java.io.OutputStream os)
Write this RulesMatcher as an XML fragment
|
getContexts, getDataModelClass, getDataModelProperty, getDataModelState, getFromDataModel, getName, isDisabled, setContexts, setDataModelClass, setDataModelProperty, setDataModelState, setDisabled, setFromDataModel, setName
public java.lang.String resourceFile
public java.lang.String language
public RulesMatcher()
public RulesMatcher(RulesMatcher o)
public RulesMatcher withName(java.lang.String name)
withName
in class SemanticProcessor
public RulesMatcher withContexts(java.lang.String contexts)
withContexts
in class SemanticProcessor
public RulesMatcher withFromDataModel(SemanticProcessor fromDataModel)
public RulesMatcher withDataModelState(java.lang.String dataModelState)
withDataModelState
in class SemanticProcessor
public RulesMatcher withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class SemanticProcessor
public RulesMatcher withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class SemanticProcessor
public RulesMatcher withDisabled(boolean disabled)
withDisabled
in class SemanticProcessor
public RulesMatcher withDisabled(java.lang.Boolean disabled)
withDisabled
in class SemanticProcessor
public void setResourceFile(java.lang.String resourceFile)
public java.lang.String getResourceFile()
public RulesMatcher withResourceFile(java.lang.String resourceFile)
public void setLanguage(java.lang.String language)
public java.lang.String getLanguage()
public RulesMatcher withLanguage(java.lang.String language)
public RulesMatcher makeCopy()
makeCopy
in class SemanticProcessor
public static RulesMatcher 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 RulesMatcher 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.