Class LicenseCreationInfo
java.lang.Object
org.spdx.storage.listedlicense.LicenseCreationInfo
Creation information for the listed license store
- Author:
- Gary O'Neall
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLicenseCreationInfo(LicenseCreatorAgent licenseListCreator, String licenseListReleaseDate) -
Method Summary
Modifier and TypeMethodDescriptionorg.spdx.core.TypedValuegetValue(org.spdx.storage.PropertyDescriptor propertyDescriptor) List<?> getValueList(org.spdx.storage.PropertyDescriptor propertyDescriptor) booleanisCollectionMembersAssignableTo(org.spdx.storage.PropertyDescriptor propertyDescriptor, Class<?> clazz) booleanisCollectionProperty(org.spdx.storage.PropertyDescriptor propertyDescriptor) booleanisPropertyValueAssignableTo(org.spdx.storage.PropertyDescriptor propertyDescriptor, Class<?> clazz)
-
Field Details
-
ALL_PROPERTY_DESCRIPTORS
-
PROPERTY_TO_STATIC_VALUE
-
-
Constructor Details
-
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 licenselicenseListReleaseDate- release date of the license list- Throws:
org.spdx.core.ModelRegistryException- if there is support for the model versionorg.spdx.core.SpdxInvalidTypeException- if the license type is invalidorg.spdx.core.SpdxInvalidIdException- if the license ID is invalid
-
-
Method Details
-
getTypedValue
public org.spdx.core.TypedValue getTypedValue()- Returns:
- the typed value
-
isCollectionProperty
public boolean isCollectionProperty(org.spdx.storage.PropertyDescriptor propertyDescriptor) - Parameters:
propertyDescriptor- descriptor for the property- Returns:
- true if it is a collection property
-
getValueList
- Parameters:
propertyDescriptor- property descriptor for the collection- Returns:
- list of values for a collection
-
getValue
- 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 collectionclazz- 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 collectionclazz- class to check- Returns:
- true if a value of type clazz can be assigned to the property
-