Package flexagon.fd.core.utils
Class InMemoryPropertyReplacement
java.lang.Object
flexagon.fd.core.utils.AbstractPropertyReplacement
flexagon.fd.core.utils.InMemoryPropertyReplacement
Concrete implementation for property replacement on a list of Strings. Properties are defined
within a given source using the notation ${{PropertyName}}. This implementation
is useful when the contents are of a file (as a List of String) are already available in memory,
but may be utilized for any List of Strings.
The property names are case-sensitive.
-
Field Summary
Fields inherited from class flexagon.fd.core.utils.AbstractPropertyReplacement
mPropertyReplacementContext -
Constructor Summary
ConstructorsConstructorDescriptionInMemoryPropertyReplacement(PropertyReplacementContext pPropertyReplacementContext, List<String> pFileData) Constructs this utility for use with the given property replacement context and source.InMemoryPropertyReplacement(WorkflowExecutionContext pWorkflowExecutionContext, List<String> pFileData) Constructs this utility for use with the given workflow execution context and source. -
Method Summary
Modifier and TypeMethodDescriptionReplaces all properties within the source with the key/values found in the WorkflowExecutionContext or PropertyReplacementContext.Methods inherited from class flexagon.fd.core.utils.AbstractPropertyReplacement
hasReplacementToken, replace
-
Constructor Details
-
InMemoryPropertyReplacement
public InMemoryPropertyReplacement(WorkflowExecutionContext pWorkflowExecutionContext, List<String> pFileData) Constructs this utility for use with the given workflow execution context and source.- Parameters:
pWorkflowExecutionContext- the workflow execution contextpFileData- the source containing properties to replace
-
InMemoryPropertyReplacement
public InMemoryPropertyReplacement(PropertyReplacementContext pPropertyReplacementContext, List<String> pFileData) Constructs this utility for use with the given property replacement context and source.- Parameters:
pPropertyReplacementContext- the property replacement contextpFileData- the source containing properties to replace
-
-
Method Details
-
replaceAll
Replaces all properties within the source with the key/values found in the WorkflowExecutionContext or PropertyReplacementContext.- Throws:
FlexCheckedException- if a property replacement fails
-