Class MatrixElementProcessor
- java.lang.Object
-
- org.dspace.importer.external.metadatamapping.contributor.MatrixElementProcessor
-
- All Implemented Interfaces:
JsonPathMetadataProcessor
public class MatrixElementProcessor extends Object implements JsonPathMetadataProcessor
This Processor allows to extract all values of a matrix. Only need to configure the path to the matrix in "pathToMatrix" For exaple to extract all values "matrix": [ [ "first", "second" ], [ "third" ], [ "fourth", "fifth" ] ],- Author:
- Mykhaylo Boychuk (mykhaylo.boychuk@4science.com)
-
-
Constructor Summary
Constructors Constructor Description MatrixElementProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>processMetadata(String json)voidsetPathToMatrix(String pathToMatrix)
-
-
-
Method Detail
-
processMetadata
public Collection<String> processMetadata(String json)
- Specified by:
processMetadatain interfaceJsonPathMetadataProcessor
-
setPathToMatrix
public void setPathToMatrix(String pathToMatrix)
-
-