Class LicenseCreationInfo


  • public class LicenseCreationInfo
    extends Object
    Author:
    Gary O'Neall Creation information for the listed license store
    • Field Detail

      • ALL_PROPERTY_DESCRIPTORS

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

        public static final Map<org.spdx.storage.PropertyDescriptor,​Object> PROPERTY_TO_STATIC_VALUE
    • Constructor Detail

      • LicenseCreationInfo

        public LicenseCreationInfo​(LicenseCreatorAgent licenseListCreator,
                                   String licenseListReleaseDate)
                            throws org.spdx.core.SpdxInvalidIdException,
                                   org.spdx.core.SpdxInvalidTypeException,
                                   org.spdx.core.ModelRegistryException
        Parameters:
        licenseListCreator - creator of the license
        licenseListReleaseDate - release date of the license list
        Throws:
        org.spdx.core.ModelRegistryException - if there is support for the model version
        org.spdx.core.SpdxInvalidTypeException - if the license type is invalid
        org.spdx.core.SpdxInvalidIdException - if the license ID is invalid
    • Method Detail

      • getTypedValue

        public org.spdx.core.TypedValue getTypedValue()
        Returns:
        the typed value
      • isCollectionProperty

        public boolean isCollectionProperty​(org.spdx.storage.PropertyDescriptor propertyDescriptor)
        Parameters:
        propertyDescriptor -
        Returns:
        true if it is a collection property
      • getValueList

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

        public Object getValue​(org.spdx.storage.PropertyDescriptor propertyDescriptor)
        Parameters:
        propertyDescriptor - property descriptor for the collection
        Returns:
        value if present, otherwise null
      • isCollectionMembersAssignableTo

        public boolean isCollectionMembersAssignableTo​(org.spdx.storage.PropertyDescriptor propertyDescriptor,
                                                       Class<?> clazz)
        Parameters:
        propertyDescriptor - property descriptor for the collection
        clazz - class to check
        Returns:
        true if the property is a collection and a value of type clazz can be assigned
      • isPropertyValueAssignableTo

        public boolean isPropertyValueAssignableTo​(org.spdx.storage.PropertyDescriptor propertyDescriptor,
                                                   Class<?> clazz)
        Parameters:
        propertyDescriptor - property descriptor for the collection
        clazz - class to check
        Returns:
        true if a value of type clazz can be assigned to the property