Class AbstractFieldMapping
- java.lang.Object
-
- com.atlassian.confluence.plugins.index.api.mapping.AbstractFieldMapping
-
- All Implemented Interfaces:
FieldMapping
- Direct Known Subclasses:
BinaryFieldMapping
,BooleanFieldMapping
,DateFieldMapping
,DoubleFieldMapping
,FloatFieldMapping
,IntFieldMapping
,LongFieldMapping
,NestedStringFieldMapping
,StringFieldMapping
,TextFieldMapping
@ParametersAreNonnullByDefault public abstract class AbstractFieldMapping extends Object implements FieldMapping
This class provides a skeletal implementation of theFieldMapping
interface.- Since:
- 8.6
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractFieldMapping.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFieldMapping(AbstractFieldMapping.Builder builder)
protected
AbstractFieldMapping(String name, boolean stored, boolean indexed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getName()
int
hashCode()
boolean
isIndexed()
boolean
isStored()
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.plugins.index.api.mapping.FieldMapping
accept
-
-
-
-
Constructor Detail
-
AbstractFieldMapping
protected AbstractFieldMapping(AbstractFieldMapping.Builder builder)
-
AbstractFieldMapping
protected AbstractFieldMapping(String name, boolean stored, boolean indexed)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceFieldMapping
- Returns:
- name of the field
-
isStored
public boolean isStored()
- Specified by:
isStored
in interfaceFieldMapping
- Returns:
- true if the original field value is stored, so it can be retrieved.
-
isIndexed
public boolean isIndexed()
- Specified by:
isIndexed
in interfaceFieldMapping
- Returns:
- true if the field is indexed, so it can be searched
-
-