public class PrefixingNameFactory extends java.lang.Object implements NameFactory
| Constructor and Description |
|---|
PrefixingNameFactory(NameFactory delegateNameFactory,
java.lang.String prefix)
Creates a new PrefixingNameFactory.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
nextName() |
void |
reset() |
public PrefixingNameFactory(NameFactory delegateNameFactory, java.lang.String prefix)
delegateNameFactory - the wrapped NameFactory.prefix - the prefix to add to all generated names.public java.lang.String nextName()
nextName in interface NameFactorypublic void reset()
reset in interface NameFactory