
public final class RegexNameRewriter extends Object implements NameRewriter
IDENTITY_REWRITER| Constructor and Description |
|---|
RegexNameRewriter(Pattern pattern,
String replacement,
boolean replaceAll)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Pattern |
getPattern()
Get the pattern.
|
String |
getReplacement()
Get the replacement string.
|
String |
rewriteName(String original)
Rewrite a name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaggregate, aggregate, asPrincipalRewriter, chain, chain, constantpublic RegexNameRewriter(Pattern pattern, String replacement, boolean replaceAll)
pattern - the substitution patternreplacement - the replacement stringreplaceAll - true to replace all occurrences of the pattern; false to replace only the first occurrencepublic String rewriteName(String original)
null.rewriteName in interface NameRewriteroriginal - the original namepublic Pattern getPattern()
public String getReplacement()
Copyright © 2020 JBoss by Red Hat. All rights reserved.