public class PrintfValues extends DocumentProcessor implements com.exalead.util.Checkable, java.io.Serializable
DocumentProcessor.FromDataModel, DocumentProcessor.Transformer<T>
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_STRICT |
java.lang.String |
formattingString |
java.lang.String |
outputContext |
boolean |
strict |
acceptCondition, dataModelClass, dataModelProperty, dataModelState, DEFAULT_DISABLED, disabled, fromDataModel, name
Constructor and Description |
---|
PrintfValues() |
PrintfValues(PrintfValues o)
Copy constructor
|
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 PrintfValues.
|
static PrintfValues |
fromString(java.lang.String s)
String representation of this PrintfValues.
|
java.lang.String |
getFormattingString()
This string contains variables in one of the 3 following formats:
1. |
java.lang.String |
getOutputContext()
ContextName to be associated with the DocumentChunk created for each generated value.
|
boolean |
isStrict()
Forces all the manipulated contexts found to process.
|
PrintfValues |
makeCopy()
Creates and returns a deep copy of this PrintfValues.
|
static PrintfValues |
readFrom(java.io.InputStream is)
Read this PrintfValues from an XML fragment.
|
void |
setFormattingString(java.lang.String formattingString)
This string contains variables in one of the 3 following formats:
1. |
void |
setOutputContext(java.lang.String outputContext)
ContextName to be associated with the DocumentChunk created for each generated value.
|
void |
setStrict(boolean strict)
Forces all the manipulated contexts found to process.
|
java.lang.String |
toString()
String representation of this PrintfValues.
|
PrintfValues |
withAcceptCondition(AcceptCondition acceptCondition) |
PrintfValues |
withDataModelClass(java.lang.String dataModelClass) |
PrintfValues |
withDataModelProperty(java.lang.String dataModelProperty) |
PrintfValues |
withDataModelState(java.lang.String dataModelState) |
PrintfValues |
withDisabled(boolean disabled) |
PrintfValues |
withDisabled(java.lang.Boolean disabled) |
PrintfValues |
withFormattingString(java.lang.String formattingString) |
PrintfValues |
withFromDataModel(DocumentProcessor fromDataModel) |
PrintfValues |
withName(java.lang.String name) |
PrintfValues |
withOutputContext(java.lang.String outputContext) |
PrintfValues |
withStrict(boolean strict) |
PrintfValues |
withStrict(java.lang.Boolean strict) |
void |
writeTo(java.io.OutputStream os)
Write this PrintfValues as an XML fragment
|
getAcceptCondition, getDataModelClass, getDataModelProperty, getDataModelState, getFromDataModel, getName, isDisabled, setAcceptCondition, setDataModelClass, setDataModelProperty, setDataModelState, setDisabled, setFromDataModel, setName
public java.lang.String formattingString
public java.lang.String outputContext
public boolean strict
public static final boolean DEFAULT_STRICT
public PrintfValues()
public PrintfValues(PrintfValues o)
public PrintfValues withAcceptCondition(AcceptCondition acceptCondition)
withAcceptCondition
in class DocumentProcessor
public PrintfValues withName(java.lang.String name)
withName
in class DocumentProcessor
public PrintfValues withDataModelState(java.lang.String dataModelState)
withDataModelState
in class DocumentProcessor
public PrintfValues withFromDataModel(DocumentProcessor fromDataModel)
public PrintfValues withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class DocumentProcessor
public PrintfValues withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class DocumentProcessor
public PrintfValues withDisabled(boolean disabled)
withDisabled
in class DocumentProcessor
public PrintfValues withDisabled(java.lang.Boolean disabled)
withDisabled
in class DocumentProcessor
public void setFormattingString(java.lang.String formattingString)
public java.lang.String getFormattingString()
public PrintfValues withFormattingString(java.lang.String formattingString)
public void setOutputContext(java.lang.String outputContext)
public java.lang.String getOutputContext()
public PrintfValues withOutputContext(java.lang.String outputContext)
public void setStrict(boolean strict)
public boolean isStrict()
public PrintfValues withStrict(boolean strict)
public PrintfValues withStrict(java.lang.Boolean strict)
public PrintfValues makeCopy()
makeCopy
in class DocumentProcessor
public static PrintfValues 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 PrintfValues 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.