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