Package org.spdx.library.model
Class GenericSpdxItem
java.lang.Object
org.spdx.library.model.ModelObject
org.spdx.library.model.SpdxElement
org.spdx.library.model.SpdxItem
org.spdx.library.model.GenericSpdxItem
public class GenericSpdxItem extends SpdxItem
Generic SPDX item - primarily used for testing
- Author:
- Gary O'Neall
-
Field Summary
Fields Modifier and Type Field Description static StringGENERIC_SPDX_ITEM_TYPE -
Constructor Summary
Constructors Constructor Description GenericSpdxItem()GenericSpdxItem(String id)GenericSpdxItem(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, boolean create) -
Method Summary
Methods inherited from class org.spdx.library.model.SpdxItem
_verify, getAttributionText, getCopyrightText, getLicenseComments, getLicenseConcluded, getLicenseInfoFromFiles, getLicenseInfoFromFilesPropertyName, setCopyrightText, setLicenseComments, setLicenseConcluded, setNameMethods inherited from class org.spdx.library.model.SpdxElement
addAnnotation, addNameToWarnings, addRelationship, getAnnotations, getComment, getName, getNamePropertyName, getRelationships, removeAnnotation, removeRelationship, setAnnotations, setComment, setRelationshipsMethods inherited from class org.spdx.library.model.ModelObject
addPropertyValueToCollection, addValueToCollection, clearValueCollection, clearValueCollection, clone, copyFrom, createAnnotation, createByteOffsetPointer, createChecksum, createConjunctiveLicenseSet, createCreationInfo, createCrossRef, createDisjunctiveLicenseSet, createExternalDocumentRef, createExternalRef, createLineCharPointer, createPackage, createPackageVerificationCode, createRelationship, createSpdxFile, createSpdxSnippet, createStartEndPointer, enterCriticalSection, equals, equivalent, equivalent, getAnyLicenseInfoPropertyValue, getBooleanPropertyValue, getCopyManager, getDocumentUri, getElementPropertyValue, getEnumPropertyValue, getId, getIntegerPropertyValue, getModelStore, getObjectPropertyValue, getObjectPropertyValue, getObjectPropertyValueCollection, getObjectPropertyValueSet, getPropertyValueNames, getStringCollection, getStringPropertyValue, hashCode, idToIdType, isCollectionMembersAssignableTo, isStrict, leaveCriticalSection, removeProperty, removeProperty, removePropertyValueFromCollection, removePropertyValueFromCollection, replacePropertyValueCollection, setCopyManager, setPropertyValue, setPropertyValue, setStrict, toString, toTypedValue, updateAddPropertyValueToCollection, updateClearValueCollection, updatePropertyValue, updateRemoveProperty, updateRemovePropertyValueFromCollection, verify, verify, verify, verifyCollection
-
Field Details
-
GENERIC_SPDX_ITEM_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
GenericSpdxItem
- Throws:
InvalidSPDXAnalysisException
-
GenericSpdxItem
- Parameters:
id-- Throws:
InvalidSPDXAnalysisException
-
GenericSpdxItem
public GenericSpdxItem(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, boolean create) throws InvalidSPDXAnalysisException- Parameters:
modelStore-documentUri-id-copyManager-create-- Throws:
InvalidSPDXAnalysisException
-
-
Method Details
-
getType
- Specified by:
getTypein classModelObject- Returns:
- The class name for this object. Class names are defined in the constants file
-