public abstract class AbstractIterationOperation<T extends WindupVertexFrame> extends GraphOperation
| Constructor and Description |
|---|
AbstractIterationOperation()
When the variable name is not specified, let the Iteration to set the current payload variable name.
|
AbstractIterationOperation(String variableName) |
| Modifier and Type | Method and Description |
|---|---|
String |
camelCase(String lowerCaseAndUnderscoredWord,
boolean uppercaseFirstLetter,
char... delimiterChars)
By default, this method converts strings to UpperCamelCase.
|
protected void |
checkVariableName(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context)
Check the variable name and if not set, set it with the singleton variable name being on the top of the stack.
|
String |
getVariableName() |
boolean |
hasVariableNameSet() |
void |
perform(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context) |
abstract void |
perform(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
T payload) |
T |
resolvePayload(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
WindupVertexFrame payload) |
protected WindupVertexFrame |
resolveVariable(GraphRewrite event,
String variableName)
|
void |
setVariableName(String variableName) |
String |
toString() |
performpublic AbstractIterationOperation()
public AbstractIterationOperation(String variableName)
public String getVariableName()
public void setVariableName(String variableName)
public boolean hasVariableNameSet()
public void perform(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
perform in class GraphOperationpublic T resolvePayload(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, WindupVertexFrame payload)
protected void checkVariableName(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
protected WindupVertexFrame resolveVariable(GraphRewrite event, String variableName)
public abstract void perform(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, T payload)
public String camelCase(String lowerCaseAndUnderscoredWord, boolean uppercaseFirstLetter, char... delimiterChars)
uppercaseFirstLetter argument to
false, then this method produces lowerCamelCase. This method will also use any extra delimiter characters to
identify word boundaries.
Examples:
inflector.camelCase("active_record",false) #=> "activeRecord"
inflector.camelCase("active_record",true) #=> "ActiveRecord"
inflector.camelCase("first_name",false) #=> "firstName"
inflector.camelCase("first_name",true) #=> "FirstName"
inflector.camelCase("name",false) #=> "name"
inflector.camelCase("name",true) #=> "Name"
lowerCaseAndUnderscoredWord - the word that is to be converted to camel caseuppercaseFirstLetter - true if the first character is to be uppercased, or false if the first character is
to be lowercaseddelimiterChars - optional characters that are used to delimit word boundariesCopyright © 2021 JBoss by Red Hat. All rights reserved.