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) |
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 © 2015 JBoss by Red Hat. All rights reserved.