public class MathDocumentProcessor extends DocumentProcessor implements com.exalead.util.Checkable, java.io.Serializable
DocumentProcessor.FromDataModel, DocumentProcessor.Transformer<T>
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_FLOATING_POINT |
java.lang.String |
expression |
boolean |
floatingPoint |
java.lang.String |
outputContext |
acceptCondition, dataModelClass, dataModelProperty, dataModelState, DEFAULT_DISABLED, disabled, fromDataModel, name
Constructor and Description |
---|
MathDocumentProcessor() |
MathDocumentProcessor(MathDocumentProcessor o)
Copy constructor
|
MathDocumentProcessor(java.lang.String expression,
java.lang.String outputContext) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(DocumentProcessor.Transformer<T> transformer,
T[] t) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this MathDocumentProcessor.
|
static MathDocumentProcessor |
fromString(java.lang.String s)
String representation of this MathDocumentProcessor.
|
java.lang.String |
getExpression()
Arithmetic expression to evaluate.
For example: "$file_size + 42" |
java.lang.String |
getOutputContext()
ContextName of the chunk to create.
|
boolean |
isFloatingPoint()
Output: A floating point number instead of the default integer one.
|
MathDocumentProcessor |
makeCopy()
Creates and returns a deep copy of this MathDocumentProcessor.
|
static MathDocumentProcessor |
readFrom(java.io.InputStream is)
Read this MathDocumentProcessor from an XML fragment.
|
void |
setExpression(java.lang.String expression)
Arithmetic expression to evaluate.
For example: "$file_size + 42" |
void |
setFloatingPoint(boolean floatingPoint)
Output: A floating point number instead of the default integer one.
|
void |
setOutputContext(java.lang.String outputContext)
ContextName of the chunk to create.
|
java.lang.String |
toString()
String representation of this MathDocumentProcessor.
|
MathDocumentProcessor |
withAcceptCondition(AcceptCondition acceptCondition) |
MathDocumentProcessor |
withDataModelClass(java.lang.String dataModelClass) |
MathDocumentProcessor |
withDataModelProperty(java.lang.String dataModelProperty) |
MathDocumentProcessor |
withDataModelState(java.lang.String dataModelState) |
MathDocumentProcessor |
withDisabled(boolean disabled) |
MathDocumentProcessor |
withDisabled(java.lang.Boolean disabled) |
MathDocumentProcessor |
withExpression(java.lang.String expression) |
MathDocumentProcessor |
withFloatingPoint(boolean floatingPoint) |
MathDocumentProcessor |
withFloatingPoint(java.lang.Boolean floatingPoint) |
MathDocumentProcessor |
withFromDataModel(DocumentProcessor fromDataModel) |
MathDocumentProcessor |
withName(java.lang.String name) |
MathDocumentProcessor |
withOutputContext(java.lang.String outputContext) |
void |
writeTo(java.io.OutputStream os)
Write this MathDocumentProcessor as an XML fragment
|
getAcceptCondition, getDataModelClass, getDataModelProperty, getDataModelState, getFromDataModel, getName, isDisabled, setAcceptCondition, setDataModelClass, setDataModelProperty, setDataModelState, setDisabled, setFromDataModel, setName
public java.lang.String expression
public java.lang.String outputContext
public boolean floatingPoint
public static final boolean DEFAULT_FLOATING_POINT
public MathDocumentProcessor()
public MathDocumentProcessor(java.lang.String expression, java.lang.String outputContext)
public MathDocumentProcessor(MathDocumentProcessor o)
public MathDocumentProcessor withAcceptCondition(AcceptCondition acceptCondition)
withAcceptCondition
in class DocumentProcessor
public MathDocumentProcessor withName(java.lang.String name)
withName
in class DocumentProcessor
public MathDocumentProcessor withDataModelState(java.lang.String dataModelState)
withDataModelState
in class DocumentProcessor
public MathDocumentProcessor withFromDataModel(DocumentProcessor fromDataModel)
public MathDocumentProcessor withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class DocumentProcessor
public MathDocumentProcessor withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class DocumentProcessor
public MathDocumentProcessor withDisabled(boolean disabled)
withDisabled
in class DocumentProcessor
public MathDocumentProcessor withDisabled(java.lang.Boolean disabled)
withDisabled
in class DocumentProcessor
public void setExpression(java.lang.String expression)
public java.lang.String getExpression()
public MathDocumentProcessor withExpression(java.lang.String expression)
public void setOutputContext(java.lang.String outputContext)
public java.lang.String getOutputContext()
public MathDocumentProcessor withOutputContext(java.lang.String outputContext)
public void setFloatingPoint(boolean floatingPoint)
public boolean isFloatingPoint()
public MathDocumentProcessor withFloatingPoint(boolean floatingPoint)
public MathDocumentProcessor withFloatingPoint(java.lang.Boolean floatingPoint)
public MathDocumentProcessor makeCopy()
makeCopy
in class DocumentProcessor
public static MathDocumentProcessor 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 DocumentProcessor
javax.xml.bind.JAXBException
java.io.IOException
public static MathDocumentProcessor 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 DocumentProcessor
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class DocumentProcessor
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.