Class AbstractFieldMapping.Builder
- java.lang.Object
-
- com.atlassian.confluence.plugins.index.api.mapping.AbstractFieldMapping.Builder
-
- Direct Known Subclasses:
BooleanFieldMapping.Builder,DateFieldMapping.Builder,DoubleFieldMapping.Builder,FloatFieldMapping.Builder,IntFieldMapping.Builder,LongFieldMapping.Builder,NestedStringFieldMapping.Builder,StringFieldMapping.Builder,TextFieldMapping.Builder
- Enclosing class:
- AbstractFieldMapping
protected abstract static class AbstractFieldMapping.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AbstractFieldMappingbuild()protected AbstractFieldMapping.Builderindex(boolean indexed)protected AbstractFieldMapping.Builderstore(boolean stored)
-
-
-
Constructor Detail
-
Builder
protected Builder(String name)
-
-
Method Detail
-
store
protected AbstractFieldMapping.Builder store(boolean stored)
- Parameters:
stored- If true, the field will store the original value so that it can be retrieved. Default = false, i.e. the field can only be searched.- Returns:
- this builder
-
index
protected AbstractFieldMapping.Builder index(boolean indexed)
- Parameters:
indexed- If true (default), the field will be indexed so that it can be searched- Returns:
- this builder
-
build
public abstract AbstractFieldMapping build()
- Returns:
- a newly created mapping
-
-