PARENT - Preferably the type of the parent, but can be anything to help with the fluent API.public class ReplacementTuple<PARENT> extends Object
StringReplacementTask and StringReplacementTool fluent.| Constructor and Description |
|---|
ReplacementTuple(PARENT parent,
String regex) |
| Modifier and Type | Method and Description |
|---|---|
String |
getRegex()
Returns the regex used for matching.
|
String |
getReplacement()
Returns the string to be used for the replacement.
|
PARENT |
with(String replacement)
Sets the replacement for the given regex.
|
public ReplacementTuple(PARENT parent, String regex)
parent - Should be an instance of the creator. It will be returned when replacement is set in
with(String). Its purpose is to allow for making the API fluent.regex - Regex to be used for matching.public PARENT with(String replacement)
replacement - If null, it will be ignored by the replacement task.PARENT given in the constructor.public String getRegex()
public String getReplacement()
Copyright © 2017 JBoss by Red Hat. All rights reserved.