Class ListedReferenceTypes

java.lang.Object
org.spdx.library.referencetype.ListedReferenceTypes

public class ListedReferenceTypes extends Object
Singleton class that maintains the current SPDX listed reference types. The listed reference types are maintained by the SPDX community.
Author:
Gary O'Neall
  • Method Details

    • getListedReferenceTypes

      public static ListedReferenceTypes getListedReferenceTypes()
      Returns:
      the listed reference types as maintained by the SPDX workgroup
    • resetListedReferenceTypes

      public static ListedReferenceTypes resetListedReferenceTypes()
      Resets all of the listed reference types and reloads the listed reference ID's NOTE: This method should be used with caution, it will negatively impact performance.
      Returns:
    • isListedReferenceType

      public boolean isListedReferenceType(URI uri)
      Returns true if the URI references a valid SPDX listed reference type
      Parameters:
      uri -
      Returns:
    • getListedReferenceUri

      public URI getListedReferenceUri(String listedReferenceName) throws InvalidSPDXAnalysisException
      Get the listed reference URI from a listed reference type name used in the tag/value format
      Parameters:
      listedReferenceName -
      Returns:
      Throws:
      InvalidSPDXAnalysisException
    • getListedReferenceTypeByName

      public ReferenceType getListedReferenceTypeByName(String listedReferenceName) throws InvalidSPDXAnalysisException
      Throws:
      InvalidSPDXAnalysisException
    • getListedReferenceName

      public String getListedReferenceName(URI uri) throws InvalidSPDXAnalysisException
      Get the listed reference type name from the listed reference URI
      Parameters:
      uri -
      Returns:
      SPDX listed reference type name used in the tag/value format
      Throws:
      InvalidSPDXAnalysisException