Freigeben über


GenerationMethod Class

public final class GenerationMethod
extends ExpandableStringEnum<GenerationMethod>

Generation method.

Field Summary

Modifier and Type Field and Description
static final GenerationMethod CLASSIFY

Values are classified against a predefined set of categories.

static final GenerationMethod EXTRACT

Values are extracted as they appear in the content.

static final GenerationMethod GENERATE

Values are generated freely based on the content.

Constructor Summary

Constructor Description
GenerationMethod()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of GenerationMethod value.

Method Summary

Modifier and Type Method and Description
static GenerationMethod fromString(String name)

Creates or finds a GenerationMethod from its string representation.

static Collection<GenerationMethod> values()

Gets known GenerationMethod values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CLASSIFY

public static final GenerationMethod CLASSIFY

Values are classified against a predefined set of categories.

EXTRACT

public static final GenerationMethod EXTRACT

Values are extracted as they appear in the content.

GENERATE

public static final GenerationMethod GENERATE

Values are generated freely based on the content.

Constructor Details

GenerationMethod

@Deprecated
public GenerationMethod()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of GenerationMethod value.

Method Details

fromString

public static GenerationMethod fromString(String name)

Creates or finds a GenerationMethod from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding GenerationMethod.

values

public static Collection<GenerationMethod> values()

Gets known GenerationMethod values.

Returns:

known GenerationMethod values.

Applies to