public final class MutableNameRewriter extends Object implements NameRewriter
IDENTITY_REWRITER
Constructor and Description |
---|
MutableNameRewriter()
Construct a new instance with the identity rewriter.
|
MutableNameRewriter(NameRewriter target)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
rewriteName(String original)
Rewrite a name.
|
void |
setTarget(NameRewriter target)
Set the target rewriter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aggregate, aggregate, asPrincipalRewriter, chain, chain, constant
public MutableNameRewriter(NameRewriter target)
target
- the target rewriter (not null
)public MutableNameRewriter()
public String rewriteName(String original)
NameRewriter
null
.rewriteName
in interface NameRewriter
original
- the original name (must not be null
)null
if the name is invalidpublic void setTarget(NameRewriter target)
target
- the target rewriter (not null
)Copyright © 2020 JBoss by Red Hat. All rights reserved.