Class DocumentAdapter.Identity
- java.lang.Object
-
- nl.gx.webmanager.services.contentindex.adapter.DocumentAdapter.Identity
-
- All Implemented Interfaces:
DocumentAdapter<Object>
- Enclosing interface:
- DocumentAdapter<T>
public static class DocumentAdapter.Identity extends Object implements DocumentAdapter<Object>
Identity implementation of DocumentAdapter. This adapter always returns the input value. Solely here to give theIndexable
annotation a default value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface nl.gx.webmanager.services.contentindex.adapter.DocumentAdapter
DocumentAdapter.Identity
-
-
Field Summary
-
Fields inherited from interface nl.gx.webmanager.services.contentindex.adapter.DocumentAdapter
IDENTITY
-
-
Constructor Summary
Constructors Constructor Description Identity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
adapt(Object value)
Takes an input value and returns an output value.
-
-
-
Method Detail
-
adapt
public Object adapt(Object value)
Description copied from interface:DocumentAdapter
Takes an input value and returns an output value. The returned value(s) are scanned for properties to index. The value itself is not indexed.- Specified by:
adapt
in interfaceDocumentAdapter<Object>
- Parameters:
value
- the value to adapt- Returns:
- the values to work with later on. May be any Object, arrays and collections are dived into
-
-