Class LicenseCreatorAgent

java.lang.Object
org.spdx.storage.listedlicense.LicenseCreatorAgent

public class LicenseCreatorAgent extends Object
Storage for the creator agent of the license list
Author:
Gary O'Neall
  • Field Details

    • ALL_PROPERTY_DESCRIPTORS

      public static final List<org.spdx.storage.PropertyDescriptor> ALL_PROPERTY_DESCRIPTORS
  • Constructor Details

    • LicenseCreatorAgent

      public LicenseCreatorAgent(String licenseListVersion) throws org.spdx.core.SpdxInvalidIdException, org.spdx.core.SpdxInvalidTypeException, org.spdx.core.ModelRegistryException
      Throws:
      org.spdx.core.SpdxInvalidIdException
      org.spdx.core.SpdxInvalidTypeException
      org.spdx.core.ModelRegistryException
  • Method Details

    • getObjectUri

      public String getObjectUri()
    • getTypedValue

      public org.spdx.core.TypedValue getTypedValue()
      Returns:
      the TypedValue
    • getValueList

      public List<?> getValueList(org.spdx.storage.PropertyDescriptor propertyDescriptor)
      Parameters:
      propertyDescriptor - descriptor for the property
      Returns:
      all values for the property
    • getValue

      public Object getValue(org.spdx.storage.PropertyDescriptor propertyDescriptor) throws org.spdx.core.InvalidSPDXAnalysisException
      Parameters:
      propertyDescriptor - descriptor for the property
      Returns:
      value if present, otherwise null
      Throws:
      org.spdx.core.InvalidSPDXAnalysisException - on SPDX parsing errors
    • isCollectionMembersAssignableTo

      public boolean isCollectionMembersAssignableTo(org.spdx.storage.PropertyDescriptor propertyDescriptor, Class<?> clazz)
      Parameters:
      propertyDescriptor - descriptor for the property
      clazz - target class
      Returns:
      true if the collection members can be assigned to the class
    • isPropertyValueAssignableTo

      public boolean isPropertyValueAssignableTo(org.spdx.storage.PropertyDescriptor propertyDescriptor, Class<?> clazz)
      Parameters:
      propertyDescriptor - descriptor for the property
      clazz - target class
      Returns:
      true if the property can be assigned to the class
    • isCollectionProperty

      public boolean isCollectionProperty(org.spdx.storage.PropertyDescriptor propertyDescriptor)
      Parameters:
      propertyDescriptor - descriptor for the property
      Returns:
      true if the property is a collection