public static class CategoryContextMapping.Builder extends ContextBuilder<CategoryContextMapping>
name
Constructor and Description |
---|
Builder(java.lang.String name) |
Builder(java.lang.String name,
java.lang.String fieldname) |
Modifier and Type | Method and Description |
---|---|
CategoryContextMapping.Builder |
addDefaultValue(java.lang.String defaultValue)
Add value to the default values of the mapping
|
CategoryContextMapping.Builder |
addDefaultValues(java.lang.Iterable<java.lang.String> defaultValues)
Add set of default values to the mapping
|
CategoryContextMapping.Builder |
addDefaultValues(java.lang.String... defaultValues)
Add set of default values to the mapping
|
CategoryContextMapping |
build() |
CategoryContextMapping.Builder |
fieldName(java.lang.String fieldname)
Set the name of the field to use
|
category, category, loadMapping, loadMappings, location, location, reference, reference
public Builder(java.lang.String name)
public Builder(java.lang.String name, java.lang.String fieldname)
public CategoryContextMapping.Builder fieldName(java.lang.String fieldname)
public CategoryContextMapping.Builder addDefaultValue(java.lang.String defaultValue)
public CategoryContextMapping.Builder addDefaultValues(java.lang.String... defaultValues)
public CategoryContextMapping.Builder addDefaultValues(java.lang.Iterable<java.lang.String> defaultValues)
public CategoryContextMapping build()
build
in class ContextBuilder<CategoryContextMapping>