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 Details

    • XMLSCHEMA_TYPE_TO_JAVA_CLASS

      public static Map<String,Class<?>> XMLSCHEMA_TYPE_TO_JAVA_CLASS
      Maps XML Schema primitive types to Java classes supported by the SPDX stores. See xml-schema for a description of XML schema types.
  • Method Details

    • getInstance

      public static SpdxJsonLDContext getInstance() throws org.spdx.core.InvalidSPDXAnalysisException
      Throws:
      org.spdx.core.InvalidSPDXAnalysisException
    • getType

      public Optional<String> getType(String propertyName)
      Parameters:
      propertyName - Name of the property
      Returns:
      type for the property name if the type is specified in the JSON-LD context
    • isList

      public boolean isList(String property)
      Parameters:
      property - JSON name of the property
      Returns:
      true if the property is a list