Package org.spdx.jacksonstore
Class JacksonSerializer
java.lang.Object
org.spdx.jacksonstore.JacksonSerializer
public class JacksonSerializer extends Object
Serializer for a model store to convert the document model object into a JsonNode
the method
docToJsonNode(String documentUri) will generate the JSON node- Author:
- Gary O'Neall
-
Constructor Summary
Constructors Constructor Description JacksonSerializer(com.fasterxml.jackson.databind.ObjectMapper mapper, MultiFormatStore.Format format, MultiFormatStore.Verbose verbose, org.spdx.storage.IModelStore store) -
Method Summary
Modifier and Type Method Description com.fasterxml.jackson.databind.node.ObjectNodedocToJsonNode(String documentUri)
-
Constructor Details
-
JacksonSerializer
public JacksonSerializer(com.fasterxml.jackson.databind.ObjectMapper mapper, MultiFormatStore.Format format, MultiFormatStore.Verbose verbose, org.spdx.storage.IModelStore store)- Parameters:
mapper- Jackson Object Mapper to use for creating JSON objectsformat- Format to usestore- Model store containing the documents
-
-
Method Details
-
docToJsonNode
public com.fasterxml.jackson.databind.node.ObjectNode docToJsonNode(String documentUri) throws org.spdx.library.InvalidSPDXAnalysisException- Parameters:
documentUri- URI for the document to be converted- Returns:
- ObjectNode for an SPDX document in Jackson JSON tree format
- Throws:
org.spdx.library.InvalidSPDXAnalysisException
-