public class FileContent extends ParameterizedGraphCondition implements FileContentMatches, FileContentFileName
FileContent.matches("Some example {text}").inFilesNamed("{filename}")
| Constructor and Description |
|---|
FileContent() |
FileContent(String contentPattern) |
| Modifier and Type | Method and Description |
|---|---|
org.ocpsoft.rewrite.config.ConditionBuilder |
as(String variable)
Optionally specify the variable name to use for the output of this condition
|
protected boolean |
evaluateAndPopulateValueStores(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
FrameCreationContext frameCreationContext) |
protected boolean |
evaluateWithValueStore(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
FrameContext frameContext) |
static FileContentFrom |
from(String from) |
Set<String> |
getRequiredParameterNames() |
protected String |
getVarname() |
FileContentFileName |
inFileNamed(String filenamePattern)
Match filenames against the provided parameterized string.
|
static FileContentMatches |
matches(String contentPattern)
Match file contents against the provided parameterized string.
|
void |
setParameterStore(org.ocpsoft.rewrite.param.ParameterStore store) |
String |
toString() |
evaluateevaluate, getInputVariablesName, getOutputVariablesName, setInputVariablesName, setOutputVariablesName, setResultsand, andNot, or, orNotpublic FileContent()
public FileContent(String contentPattern)
public static FileContentFrom from(String from)
public static FileContentMatches matches(String contentPattern)
public org.ocpsoft.rewrite.config.ConditionBuilder as(String variable)
as in interface FileContentFileNameas in interface FileContentMatchespublic FileContentFileName inFileNamed(String filenamePattern)
inFileNamed in interface FileContentMatchespublic Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface org.ocpsoft.rewrite.param.Parameterizedpublic void setParameterStore(org.ocpsoft.rewrite.param.ParameterStore store)
setParameterStore in interface org.ocpsoft.rewrite.param.Parameterizedprotected String getVarname()
getVarname in class ParameterizedGraphConditionprotected boolean evaluateAndPopulateValueStores(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, FrameCreationContext frameCreationContext)
evaluateAndPopulateValueStores in class ParameterizedGraphConditionprotected boolean evaluateWithValueStore(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, FrameContext frameContext)
evaluateWithValueStore in class ParameterizedGraphConditionCopyright © 2018 JBoss by Red Hat. All rights reserved.