Class LicenseCreatorAgent
java.lang.Object
org.spdx.storage.listedlicense.LicenseCreatorAgent
Storage for the creator agent of the license list
- Author:
- Gary O'Neall
-
Field Summary
Fields -
Constructor Summary
Constructors -
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
-
-
Constructor Details
-
LicenseCreatorAgent
public LicenseCreatorAgent(String licenseListVersion) throws org.spdx.core.SpdxInvalidIdException, org.spdx.core.SpdxInvalidTypeException, org.spdx.core.ModelRegistryException - Throws:
org.spdx.core.SpdxInvalidIdExceptionorg.spdx.core.SpdxInvalidTypeExceptionorg.spdx.core.ModelRegistryException
-
-
Method Details
-
getObjectUri
-
getTypedValue
public org.spdx.core.TypedValue getTypedValue()- Returns:
- the TypedValue
-
getValueList
- 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 propertyclazz- 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 propertyclazz- 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
-