public class ConcatValues extends MultiContextDocumentProcessor implements com.exalead.util.Checkable, java.io.Serializable
MultiContextDocumentProcessor.InputContexts, MultiContextDocumentProcessor.Transformer<T>
DocumentProcessor.FromDataModel
Modifier and Type | Field and Description |
---|---|
boolean |
allowDuplicates |
boolean |
cartesianProduct |
static boolean |
DEFAULT_ALLOW_DUPLICATES |
static boolean |
DEFAULT_CARTESIAN_PRODUCT |
static boolean |
DEFAULT_STRICT |
java.lang.String |
join |
java.lang.String |
outputContext |
boolean |
strict |
inputContexts
acceptCondition, dataModelClass, dataModelProperty, dataModelState, DEFAULT_DISABLED, disabled, fromDataModel, name
Constructor and Description |
---|
ConcatValues() |
ConcatValues(ConcatValues 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 ConcatValues.
|
static ConcatValues |
fromString(java.lang.String s)
String representation of this ConcatValues.
|
java.lang.String |
getJoin()
Optional string inserted between concatenated values.
|
java.lang.String |
getOutputContext()
ContextName to be associated with the DocumentChunk created for each concatenated value.
|
boolean |
isAllowDuplicates()
If true, and if there are multiple DocumentChunks with the same ContextName, it concatenates them all.
If false, only the first DocumentChunk among all those with the same ContextName is kept. |
boolean |
isCartesianProduct()
If there are multiple DocumentChunks with the same ContextName, it generates the cartesian product between all values.
|
boolean |
isStrict()
Forces all the input contexts found to generate the concatenation.
|
ConcatValues |
makeCopy()
Creates and returns a deep copy of this ConcatValues.
|
static ConcatValues |
readFrom(java.io.InputStream is)
Read this ConcatValues from an XML fragment.
|
void |
setAllowDuplicates(boolean allowDuplicates)
If true, and if there are multiple DocumentChunks with the same ContextName, it concatenates them all.
If false, only the first DocumentChunk among all those with the same ContextName is kept. |
void |
setCartesianProduct(boolean cartesianProduct)
If there are multiple DocumentChunks with the same ContextName, it generates the cartesian product between all values.
|
void |
setJoin(java.lang.String join)
Optional string inserted between concatenated values.
|
void |
setOutputContext(java.lang.String outputContext)
ContextName to be associated with the DocumentChunk created for each concatenated value.
|
void |
setStrict(boolean strict)
Forces all the input contexts found to generate the concatenation.
|
java.lang.String |
toString()
String representation of this ConcatValues.
|
ConcatValues |
withAcceptCondition(AcceptCondition acceptCondition) |
ConcatValues |
withAllowDuplicates(boolean allowDuplicates) |
ConcatValues |
withAllowDuplicates(java.lang.Boolean allowDuplicates) |
ConcatValues |
withCartesianProduct(boolean cartesianProduct) |
ConcatValues |
withCartesianProduct(java.lang.Boolean cartesianProduct) |
ConcatValues |
withDataModelClass(java.lang.String dataModelClass) |
ConcatValues |
withDataModelProperty(java.lang.String dataModelProperty) |
ConcatValues |
withDataModelState(java.lang.String dataModelState) |
ConcatValues |
withDisabled(boolean disabled) |
ConcatValues |
withDisabled(java.lang.Boolean disabled) |
ConcatValues |
withFromDataModel(DocumentProcessor fromDataModel) |
ConcatValues |
withInputContexts(java.util.Collection<StringValue> __values) |
ConcatValues |
withInputContexts(StringValue... __values)
The processor will only be applied to DocumentChunks with a ContextName specified in this list.
|
ConcatValues |
withJoin(java.lang.String join) |
ConcatValues |
withName(java.lang.String name) |
ConcatValues |
withOutputContext(java.lang.String outputContext) |
ConcatValues |
withStrict(boolean strict) |
ConcatValues |
withStrict(java.lang.Boolean strict) |
void |
writeTo(java.io.OutputStream os)
Write this ConcatValues as an XML fragment
|
getInputContexts, setInputContexts, withInputContexts
getAcceptCondition, getDataModelClass, getDataModelProperty, getDataModelState, getFromDataModel, getName, isDisabled, setAcceptCondition, setDataModelClass, setDataModelProperty, setDataModelState, setDisabled, setFromDataModel, setName
public java.lang.String outputContext
public java.lang.String join
public boolean strict
public static final boolean DEFAULT_STRICT
public boolean allowDuplicates
public static final boolean DEFAULT_ALLOW_DUPLICATES
public boolean cartesianProduct
public static final boolean DEFAULT_CARTESIAN_PRODUCT
public ConcatValues()
public ConcatValues(ConcatValues o)
public ConcatValues withInputContexts(StringValue... __values)
withInputContexts
in class MultiContextDocumentProcessor
public ConcatValues withInputContexts(java.util.Collection<StringValue> __values)
withInputContexts
in class MultiContextDocumentProcessor
public ConcatValues withAcceptCondition(AcceptCondition acceptCondition)
withAcceptCondition
in class MultiContextDocumentProcessor
public ConcatValues withName(java.lang.String name)
withName
in class MultiContextDocumentProcessor
public ConcatValues withDataModelState(java.lang.String dataModelState)
withDataModelState
in class MultiContextDocumentProcessor
public ConcatValues withFromDataModel(DocumentProcessor fromDataModel)
withFromDataModel
in class MultiContextDocumentProcessor
public ConcatValues withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class MultiContextDocumentProcessor
public ConcatValues withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class MultiContextDocumentProcessor
public ConcatValues withDisabled(boolean disabled)
withDisabled
in class MultiContextDocumentProcessor
public ConcatValues withDisabled(java.lang.Boolean disabled)
withDisabled
in class MultiContextDocumentProcessor
public void setOutputContext(java.lang.String outputContext)
public java.lang.String getOutputContext()
public ConcatValues withOutputContext(java.lang.String outputContext)
public void setJoin(java.lang.String join)
public java.lang.String getJoin()
public ConcatValues withJoin(java.lang.String join)
public void setStrict(boolean strict)
public boolean isStrict()
public ConcatValues withStrict(boolean strict)
public ConcatValues withStrict(java.lang.Boolean strict)
public void setAllowDuplicates(boolean allowDuplicates)
public boolean isAllowDuplicates()
public ConcatValues withAllowDuplicates(boolean allowDuplicates)
public ConcatValues withAllowDuplicates(java.lang.Boolean allowDuplicates)
public void setCartesianProduct(boolean cartesianProduct)
public boolean isCartesianProduct()
public ConcatValues withCartesianProduct(boolean cartesianProduct)
public ConcatValues withCartesianProduct(java.lang.Boolean cartesianProduct)
public ConcatValues makeCopy()
makeCopy
in class MultiContextDocumentProcessor
public static ConcatValues 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 ConcatValues 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.