public class NameModifierImpl extends Object implements NameModifier
Constructor and Description |
---|
NameModifierImpl() |
NameModifierImpl(String pattern)
Construct a NameModifier from a pattern of the form xxx%xxx.
|
NameModifierImpl(String prefix,
String suffix) |
Modifier and Type | Method and Description |
---|---|
String |
makeName(String base)
Create a modified name from the base name.
|
public NameModifierImpl()
public NameModifierImpl(String pattern)
The semantics of makeName are very simply: just replace the % character with the base in the pattern and return the result.
public String makeName(String base)
NameModifier
makeName
in interface NameModifier
Copyright © 2016 JBoss by Red Hat. All rights reserved.