public class UTF8Checker extends MultiContextDocumentProcessor implements com.exalead.util.Checkable, java.io.Serializable
MultiContextDocumentProcessor.InputContexts, MultiContextDocumentProcessor.Transformer<T>
DocumentProcessor.FromDataModel
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_DELETE_INVALID_CHUNKS |
boolean |
deleteInvalidChunks |
inputContexts
acceptCondition, dataModelClass, dataModelProperty, dataModelState, DEFAULT_DISABLED, disabled, fromDataModel, name
Constructor and Description |
---|
UTF8Checker() |
UTF8Checker(UTF8Checker o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(DocumentProcessor.Transformer<T> transformer,
T[] t) |
<T> T |
accept(MultiContextDocumentProcessor.Transformer<T> transformer,
T[] t) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this UTF8Checker.
|
static UTF8Checker |
fromString(java.lang.String s)
String representation of this UTF8Checker.
|
boolean |
isDeleteInvalidChunks()
Removes invalid chunks from documents.
|
UTF8Checker |
makeCopy()
Creates and returns a deep copy of this UTF8Checker.
|
static UTF8Checker |
readFrom(java.io.InputStream is)
Read this UTF8Checker from an XML fragment.
|
void |
setDeleteInvalidChunks(boolean deleteInvalidChunks)
Removes invalid chunks from documents.
|
java.lang.String |
toString()
String representation of this UTF8Checker.
|
UTF8Checker |
withAcceptCondition(AcceptCondition acceptCondition) |
UTF8Checker |
withDataModelClass(java.lang.String dataModelClass) |
UTF8Checker |
withDataModelProperty(java.lang.String dataModelProperty) |
UTF8Checker |
withDataModelState(java.lang.String dataModelState) |
UTF8Checker |
withDeleteInvalidChunks(boolean deleteInvalidChunks) |
UTF8Checker |
withDeleteInvalidChunks(java.lang.Boolean deleteInvalidChunks) |
UTF8Checker |
withDisabled(boolean disabled) |
UTF8Checker |
withDisabled(java.lang.Boolean disabled) |
UTF8Checker |
withFromDataModel(DocumentProcessor fromDataModel) |
UTF8Checker |
withInputContexts(java.util.Collection<StringValue> __values) |
UTF8Checker |
withInputContexts(StringValue... __values)
The processor will only be applied to DocumentChunks with a ContextName specified in this list.
|
UTF8Checker |
withName(java.lang.String name) |
void |
writeTo(java.io.OutputStream os)
Write this UTF8Checker as an XML fragment
|
getInputContexts, setInputContexts, withInputContexts
getAcceptCondition, getDataModelClass, getDataModelProperty, getDataModelState, getFromDataModel, getName, isDisabled, setAcceptCondition, setDataModelClass, setDataModelProperty, setDataModelState, setDisabled, setFromDataModel, setName
public boolean deleteInvalidChunks
public static final boolean DEFAULT_DELETE_INVALID_CHUNKS
public UTF8Checker()
public UTF8Checker(UTF8Checker o)
public UTF8Checker withInputContexts(StringValue... __values)
withInputContexts
in class MultiContextDocumentProcessor
public UTF8Checker withInputContexts(java.util.Collection<StringValue> __values)
withInputContexts
in class MultiContextDocumentProcessor
public UTF8Checker withAcceptCondition(AcceptCondition acceptCondition)
withAcceptCondition
in class MultiContextDocumentProcessor
public UTF8Checker withName(java.lang.String name)
withName
in class MultiContextDocumentProcessor
public UTF8Checker withDataModelState(java.lang.String dataModelState)
withDataModelState
in class MultiContextDocumentProcessor
public UTF8Checker withFromDataModel(DocumentProcessor fromDataModel)
withFromDataModel
in class MultiContextDocumentProcessor
public UTF8Checker withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class MultiContextDocumentProcessor
public UTF8Checker withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class MultiContextDocumentProcessor
public UTF8Checker withDisabled(boolean disabled)
withDisabled
in class MultiContextDocumentProcessor
public UTF8Checker withDisabled(java.lang.Boolean disabled)
withDisabled
in class MultiContextDocumentProcessor
public void setDeleteInvalidChunks(boolean deleteInvalidChunks)
public boolean isDeleteInvalidChunks()
public UTF8Checker withDeleteInvalidChunks(boolean deleteInvalidChunks)
public UTF8Checker withDeleteInvalidChunks(java.lang.Boolean deleteInvalidChunks)
public UTF8Checker makeCopy()
makeCopy
in class MultiContextDocumentProcessor
public static UTF8Checker 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 MultiContextDocumentProcessor
javax.xml.bind.JAXBException
java.io.IOException
public static UTF8Checker 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 MultiContextDocumentProcessor
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class MultiContextDocumentProcessor
com.exalead.util.TypedException
public <T> T accept(MultiContextDocumentProcessor.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class MultiContextDocumentProcessor
com.exalead.util.TypedException
public <T> T accept(DocumentProcessor.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class DocumentProcessor
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.