public class NameUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NameUtil.BasicNameFactory
The basic name factory generates sequential names with simple pattern detection.
|
static interface |
NameUtil.NameFactory |
static interface |
NameUtil.NameProvider<T>
For a given object, provides its name.
|
static interface |
NameUtil.NameValidator
The implementor will return whether the provided name exists or not.
|
static class |
NameUtil.TrackingNameValidatorWrapper
This NameValidator wrapper is used for generating many names, when the underlying name validator won't be updated
on the fly.
|
Constructor and Description |
---|
NameUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
nextName(NameUtil.NameFactory factory,
NameUtil.NameValidator validator) |
static java.lang.String |
nextName(java.lang.String baseName,
NameUtil.NameValidator validator)
Returns the next name generated off of the given base name.
|
public static java.lang.String nextName(java.lang.String baseName, NameUtil.NameValidator validator)
baseName
- validator
- public static java.lang.String nextName(NameUtil.NameFactory factory, NameUtil.NameValidator validator)