Package org.spdx.library.referencetype
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 Summary
Modifier and Type Method Description StringgetListedReferenceName(URI uri)Get the listed reference type name from the listed reference URIReferenceTypegetListedReferenceTypeByName(String listedReferenceName)static ListedReferenceTypesgetListedReferenceTypes()URIgetListedReferenceUri(String listedReferenceName)Get the listed reference URI from a listed reference type name used in the tag/value formatbooleanisListedReferenceType(URI uri)Returns true if the URI references a valid SPDX listed reference typestatic ListedReferenceTypesresetListedReferenceTypes()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.
-
Method Details
-
getListedReferenceTypes
- Returns:
- the listed reference types as maintained by the SPDX workgroup
-
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
Returns true if the URI references a valid SPDX listed reference type- Parameters:
uri-- Returns:
-
getListedReferenceUri
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
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
-