public abstract class SemanticProcessor
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SemanticProcessor.FromDataModel |
static interface |
SemanticProcessor.Transformer<T> |
static interface |
SemanticProcessor.Visitor |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
contexts |
java.lang.String |
dataModelClass |
java.lang.String |
dataModelProperty |
java.lang.String |
dataModelState |
static boolean |
DEFAULT_DISABLED |
boolean |
disabled |
protected SemanticProcessor.FromDataModel |
fromDataModel |
java.lang.String |
name |
Constructor and Description |
---|
SemanticProcessor() |
SemanticProcessor(SemanticProcessor o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
abstract <T> T |
accept(SemanticProcessor.Transformer<T> transformer,
T[] t) |
abstract void |
accept(SemanticProcessor.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SemanticProcessor.
|
static SemanticProcessor |
fromString(java.lang.String s)
String representation of this SemanticProcessor.
|
java.lang.String |
getContexts()
Comma-separated list of the ContextNames of the Document Chunks on which this processor should be applied.
If this list is empty, all DocumentChunks are processed. |
java.lang.String |
getDataModelClass()
If dataModelState is either "auto" or "customized", you will find here the name of the DataModelClass that generated this DocumentProcessor.
|
java.lang.String |
getDataModelProperty()
If dataModelState is either "auto" or "customized", you will find here the name of the DataModelProperty that generated this DocumentProcessor.
|
java.lang.String |
getDataModelState()
Is this semantic processor managed by a data model?
|
SemanticProcessor.FromDataModel |
getFromDataModel() |
java.lang.String |
getName()
Name of the Semantic Processor.
This name is only used for tracing and debugging purposes. |
boolean |
isDisabled()
Disables the DocumentProcessor
|
SemanticProcessor |
makeCopy() |
static SemanticProcessor |
readFrom(java.io.InputStream is)
Read this SemanticProcessor from an XML fragment.
|
void |
setContexts(java.lang.String contexts)
Comma-separated list of the ContextNames of the Document Chunks on which this processor should be applied.
If this list is empty, all DocumentChunks are processed. |
void |
setDataModelClass(java.lang.String dataModelClass)
If dataModelState is either "auto" or "customized", you will find here the name of the DataModelClass that generated this DocumentProcessor.
|
void |
setDataModelProperty(java.lang.String dataModelProperty)
If dataModelState is either "auto" or "customized", you will find here the name of the DataModelProperty that generated this DocumentProcessor.
|
void |
setDataModelState(java.lang.String dataModelState)
Is this semantic processor managed by a data model?
|
void |
setDisabled(boolean disabled)
Disables the DocumentProcessor
|
void |
setFromDataModel(SemanticProcessor.FromDataModel __value) |
void |
setName(java.lang.String name)
Name of the Semantic Processor.
This name is only used for tracing and debugging purposes. |
java.lang.String |
toString()
String representation of this SemanticProcessor.
|
SemanticProcessor |
withContexts(java.lang.String contexts) |
SemanticProcessor |
withDataModelClass(java.lang.String dataModelClass) |
SemanticProcessor |
withDataModelProperty(java.lang.String dataModelProperty) |
SemanticProcessor |
withDataModelState(java.lang.String dataModelState) |
SemanticProcessor |
withDisabled(boolean disabled) |
SemanticProcessor |
withDisabled(java.lang.Boolean disabled) |
SemanticProcessor |
withName(java.lang.String name) |
void |
writeTo(java.io.OutputStream os) |
public java.lang.String name
public java.lang.String contexts
protected SemanticProcessor.FromDataModel fromDataModel
public java.lang.String dataModelState
public java.lang.String dataModelClass
public java.lang.String dataModelProperty
public boolean disabled
public static final boolean DEFAULT_DISABLED
public SemanticProcessor()
public SemanticProcessor(SemanticProcessor o)
public void setName(java.lang.String name)
public java.lang.String getName()
public SemanticProcessor withName(java.lang.String name)
public void setContexts(java.lang.String contexts)
public java.lang.String getContexts()
public SemanticProcessor withContexts(java.lang.String contexts)
public SemanticProcessor.FromDataModel getFromDataModel()
public void setFromDataModel(SemanticProcessor.FromDataModel __value)
public void setDataModelState(java.lang.String dataModelState)
public java.lang.String getDataModelState()
public SemanticProcessor withDataModelState(java.lang.String dataModelState)
public void setDataModelClass(java.lang.String dataModelClass)
public java.lang.String getDataModelClass()
public SemanticProcessor withDataModelClass(java.lang.String dataModelClass)
public void setDataModelProperty(java.lang.String dataModelProperty)
public java.lang.String getDataModelProperty()
public SemanticProcessor withDataModelProperty(java.lang.String dataModelProperty)
public void setDisabled(boolean disabled)
public boolean isDisabled()
public SemanticProcessor withDisabled(boolean disabled)
public SemanticProcessor withDisabled(java.lang.Boolean disabled)
public SemanticProcessor makeCopy()
public static SemanticProcessor 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
javax.xml.bind.JAXBException
java.io.IOException
public static SemanticProcessor 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 java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
public abstract void accept(SemanticProcessor.Visitor visitor) throws com.exalead.util.TypedException
com.exalead.util.TypedException
public abstract <T> T accept(SemanticProcessor.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.