public class CopyContext extends SingleContextDocumentProcessor implements com.exalead.util.Checkable, java.io.Serializable
SingleContextDocumentProcessor.Transformer<T>
DocumentProcessor.FromDataModel
Modifier and Type | Field and Description |
---|---|
java.lang.String |
outputContext |
java.lang.String |
requiredAnnotation |
java.lang.String |
restrictValues |
inputContext
acceptCondition, dataModelClass, dataModelProperty, dataModelState, DEFAULT_DISABLED, disabled, fromDataModel, name
Constructor and Description |
---|
CopyContext() |
CopyContext(CopyContext o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(DocumentProcessor.Transformer<T> transformer,
T[] t) |
<T> T |
accept(SingleContextDocumentProcessor.Transformer<T> transformer,
T[] t) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this CopyContext.
|
static CopyContext |
fromString(java.lang.String s)
String representation of this CopyContext.
|
java.lang.String |
getOutputContext()
The ContextName used for newly created chunks.
|
java.lang.String |
getRequiredAnnotation()
The name of the required annotation the chunk must have to be copied.
If null, no special handling is done on annotations. |
java.lang.String |
getRestrictValues()
A regexp which values of the chunk must match to be copied to the output context.
Values that don't match the regexp will not be copied. |
CopyContext |
makeCopy()
Creates and returns a deep copy of this CopyContext.
|
static CopyContext |
readFrom(java.io.InputStream is)
Read this CopyContext from an XML fragment.
|
void |
setOutputContext(java.lang.String outputContext)
The ContextName used for newly created chunks.
|
void |
setRequiredAnnotation(java.lang.String requiredAnnotation)
The name of the required annotation the chunk must have to be copied.
If null, no special handling is done on annotations. |
void |
setRestrictValues(java.lang.String restrictValues)
A regexp which values of the chunk must match to be copied to the output context.
Values that don't match the regexp will not be copied. |
java.lang.String |
toString()
String representation of this CopyContext.
|
CopyContext |
withAcceptCondition(AcceptCondition acceptCondition) |
CopyContext |
withDataModelClass(java.lang.String dataModelClass) |
CopyContext |
withDataModelProperty(java.lang.String dataModelProperty) |
CopyContext |
withDataModelState(java.lang.String dataModelState) |
CopyContext |
withDisabled(boolean disabled) |
CopyContext |
withDisabled(java.lang.Boolean disabled) |
CopyContext |
withFromDataModel(DocumentProcessor fromDataModel) |
CopyContext |
withInputContext(java.lang.String inputContext) |
CopyContext |
withName(java.lang.String name) |
CopyContext |
withOutputContext(java.lang.String outputContext) |
CopyContext |
withRequiredAnnotation(java.lang.String requiredAnnotation) |
CopyContext |
withRestrictValues(java.lang.String restrictValues) |
void |
writeTo(java.io.OutputStream os)
Write this CopyContext as an XML fragment
|
getInputContext, setInputContext
getAcceptCondition, getDataModelClass, getDataModelProperty, getDataModelState, getFromDataModel, getName, isDisabled, setAcceptCondition, setDataModelClass, setDataModelProperty, setDataModelState, setDisabled, setFromDataModel, setName
public java.lang.String outputContext
public java.lang.String requiredAnnotation
public java.lang.String restrictValues
public CopyContext()
public CopyContext(CopyContext o)
public CopyContext withInputContext(java.lang.String inputContext)
withInputContext
in class SingleContextDocumentProcessor
public CopyContext withAcceptCondition(AcceptCondition acceptCondition)
withAcceptCondition
in class SingleContextDocumentProcessor
public CopyContext withName(java.lang.String name)
withName
in class SingleContextDocumentProcessor
public CopyContext withDataModelState(java.lang.String dataModelState)
withDataModelState
in class SingleContextDocumentProcessor
public CopyContext withFromDataModel(DocumentProcessor fromDataModel)
withFromDataModel
in class SingleContextDocumentProcessor
public CopyContext withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class SingleContextDocumentProcessor
public CopyContext withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class SingleContextDocumentProcessor
public CopyContext withDisabled(boolean disabled)
withDisabled
in class SingleContextDocumentProcessor
public CopyContext withDisabled(java.lang.Boolean disabled)
withDisabled
in class SingleContextDocumentProcessor
public void setOutputContext(java.lang.String outputContext)
public java.lang.String getOutputContext()
public CopyContext withOutputContext(java.lang.String outputContext)
public void setRequiredAnnotation(java.lang.String requiredAnnotation)
public java.lang.String getRequiredAnnotation()
public CopyContext withRequiredAnnotation(java.lang.String requiredAnnotation)
public void setRestrictValues(java.lang.String restrictValues)
public java.lang.String getRestrictValues()
public CopyContext withRestrictValues(java.lang.String restrictValues)
public CopyContext makeCopy()
makeCopy
in class SingleContextDocumentProcessor
public static CopyContext 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 SingleContextDocumentProcessor
javax.xml.bind.JAXBException
java.io.IOException
public static CopyContext 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 SingleContextDocumentProcessor
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class SingleContextDocumentProcessor
com.exalead.util.TypedException
public <T> T accept(SingleContextDocumentProcessor.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class SingleContextDocumentProcessor
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.