Package org.spdx.jacksonstore
Class JacksonDeSerializer
java.lang.Object
org.spdx.jacksonstore.JacksonDeSerializer
Converts a Jackson node for a document to a stored document in a model store
- Author:
- Gary O'Neall
-
Constructor Summary
ConstructorsConstructorDescriptionJacksonDeSerializer
(org.spdx.storage.IModelStore store, org.spdx.core.IModelCopyManager modelCopyManager, MultiFormatStore.Format format) JacksonDeSerializer
(org.spdx.storage.IModelStore store, MultiFormatStore.Format format) -
Method Summary
Modifier and TypeMethodDescriptionvoid
storeDocument
(String documentNamespace, com.fasterxml.jackson.databind.JsonNode doc) Stores an SPDX document converted from the JsonNode doc
-
Constructor Details
-
JacksonDeSerializer
- Parameters:
store
- store to store any documents in
-
JacksonDeSerializer
public JacksonDeSerializer(org.spdx.storage.IModelStore store, org.spdx.core.IModelCopyManager modelCopyManager, MultiFormatStore.Format format) - Parameters:
store
- store to store any documents inmodelCopyManager
- copy manager to use when copying from the SPDX listed license model storeformat
- Format expected for the serialized data
-
-
Method Details
-
storeDocument
public void storeDocument(String documentNamespace, com.fasterxml.jackson.databind.JsonNode doc) throws org.spdx.core.InvalidSPDXAnalysisException Stores an SPDX document converted from the JsonNode doc- Parameters:
documentNamespace
- namespace for the documentdoc
- JsonNode containing the SPDX document- Throws:
org.spdx.core.InvalidSPDXAnalysisException
- on SPDX parsing errors
-