public class NameFactory
extends java.lang.Object
implements java.io.Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
CONSTRAINT_GENERATOR
The fully qualified class name of the constraint name generator.
|
static java.lang.String |
JAVA_GENERATOR
The fully qualified class name of the Java name generator.
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
NameFactory()
Creates a new instance with storage for algorithm implementations.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.String |
generateName(java.lang.String algorithmName,
java.util.List inputs,
boolean IGNORE_FIRST_TOKEN)
Given a list of
String objects, implements an
algorithm which produces a name. |
protected NameGenerator |
getAlgorithm(java.lang.String name)
Factory method which retrieves an instance of the named generator.
|
public static final java.lang.String JAVA_GENERATOR
public static final java.lang.String CONSTRAINT_GENERATOR
protected NameFactory()
protected NameGenerator getAlgorithm(java.lang.String name) throws EngineException
name - The fully qualified class name of the name
generation algorithm to retrieve.EngineExceptionpublic static java.lang.String generateName(java.lang.String algorithmName,
java.util.List inputs,
boolean IGNORE_FIRST_TOKEN)
throws EngineException
String objects, implements an
algorithm which produces a name.algorithmName - The fully qualified class name of the
NameGenerator
implementation to use to generate names.inputs - Inputs used to generate a name.EngineException - an exception