public class FilePropertyReplacement extends AbstractPropertyReplacement
mPropertyReplacementContext
Constructor and Description |
---|
FilePropertyReplacement(PropertyReplacementContext pPropertyReplacementContext,
java.io.File pFile)
Constructs this utility for use with the given PropertyReplacementContext and file name.
|
FilePropertyReplacement(PropertyReplacementContext pPropertyReplacementContext,
java.lang.String pFileName)
Constructs this utility for use with the given PropertyReplacementContext and file name.
|
FilePropertyReplacement(WorkflowExecutionContext pWorkflowExecutionContext,
java.lang.String pFileName)
Constructs this utility for use with the given workflow execution context and file source.
|
Modifier and Type | Method and Description |
---|---|
void |
replaceAll()
Replaces all properties within the given source file with the key/values found in the PropertyReplacementContext.
|
hasReplacementToken, replace
public FilePropertyReplacement(WorkflowExecutionContext pWorkflowExecutionContext, java.lang.String pFileName) throws FlexCheckedException
pWorkflowExecutionContext
- the workflow execution contextString
- the absolute path of the file containing properties to replaceFlexCheckedException
public FilePropertyReplacement(PropertyReplacementContext pPropertyReplacementContext, java.io.File pFile) throws FlexCheckedException
pPropertyReplacementContext
- the property replacement contextpFile
- the file containing properties to replaceFlexCheckedException
- if the file does not exist or could not be openedpublic FilePropertyReplacement(PropertyReplacementContext pPropertyReplacementContext, java.lang.String pFileName) throws FlexCheckedException
pPropertyReplacementContext
- the property replacement contextpFileName
- the absolute path of the file containing properties to replaceFlexCheckedException
- if the file does not exist or could not be openedpublic void replaceAll() throws FlexCheckedException
FlexCheckedException