Package org.spdx.jacksonstore
Class SpdxJsonLDContext
java.lang.Object
org.spdx.jacksonstore.SpdxJsonLDContext
public class SpdxJsonLDContext extends Object
Singleton class which manages access to the JSON-LD context for SPDX
- Author:
- Gary O'Neall
-
Field Summary
Fields Modifier and Type Field Description static Map<String,Class<? extends Object>>XMLSCHEMA_TYPE_TO_JAVA_CLASSMaps XML Schema primitive types to Java classes supported by the SPDX stores. -
Method Summary
Modifier and Type Method Description static SpdxJsonLDContextgetInstance()Optional<String>getType(String propertyName)booleanisList(String property)
-
Field Details
-
XMLSCHEMA_TYPE_TO_JAVA_CLASS
Maps XML Schema primitive types to Java classes supported by the SPDX stores. See https://www.w3.org/TR/xmlschema-2 for a description of XML schema types.
-
-
Method Details
-
getInstance
- Throws:
org.spdx.library.InvalidSPDXAnalysisException
-
getType
- Parameters:
propertyName-- Returns:
- type type for the property name if the type is specified in the JSON-LD context
-
isList
- Parameters:
property-- Returns:
- true if the property is a list
-