Package org.spdx.rdfparser.license
Class AnyLicenseInfo
java.lang.Object
org.spdx.rdfparser.model.RdfModelObject
org.spdx.rdfparser.license.AnyLicenseInfo
- Direct Known Subclasses:
LicenseSet,OrLaterOperator,SimpleLicensingInfo,SpdxNoAssertionLicense,SpdxNoneLicense,WithExceptionOperator
public abstract class AnyLicenseInfo extends RdfModelObject
This abstract class represents several ways of describing licensing information.
License info can be described as a set of conjunctive licenses (where all licenses
terms must apply), a set of disjunctive licenses (where there is a choice of one
license among the set described) or a specific license. The specific licenses
are of a SimpleLicensingInfoType
- Author:
- Gary O'Neall
-
Field Summary
Fields inherited from class org.spdx.rdfparser.model.RdfModelObject
model, modelContainer, node, refreshOnGet, resource -
Method Summary
Modifier and Type Method Description abstract AnyLicenseInfoclone()abstract booleanequals(Object o)org.apache.jena.rdf.model.ResourcegetResource()abstract inthashCode()abstract voidpopulateModel()Populate the RDF model from the Java propertiesabstract StringtoString()Methods inherited from class org.spdx.rdfparser.model.RdfModelObject
addPropertyUriValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, arraysEquivalent, createResource, createResource, equivalentConsideringNull, findAnnotationPropertyValues, findAnyLicenseInfoPropertyValue, findAnyLicenseInfoPropertyValues, findChecksumPropertyValue, findCreationInfoPropertyValue, findDuplicateResource, findElementPropertyValue, findExternalDocRefPropertyValues, findExternalDocRefPropertyValues, findExternalRefPropertyValues, findIntPropertyValue, findMultipleChecksumPropertyValues, findMultipleCrossRefPropertyValues, findMultipleDoapPropertyValues, findMultipleElementPropertyValues, findMultiplePropertyValues, findReferenceTypePropertyValue, findRelationshipPropertyValues, findReviewPropertyValues, findSinglePointerPropertyValue, findSinglePropertyValue, findStartEndPointerPropertyValues, findUriPropertyValue, findUriPropertyValues, findVerificationCodePropertyValue, getNode, getPropertiesFromModel, getType, getUri, isRefreshOnGet, removePropertyValue, resourcesEqual, setMultipleObjectsForSameNode, setPropertyUriValue, setPropertyUriValues, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, SetPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setSingleObjectForSameNode
-
Method Details
-
populateModel
Description copied from class:RdfModelObjectPopulate the RDF model from the Java properties- Specified by:
populateModelin classRdfModelObject- Throws:
InvalidSPDXAnalysisException
-
toString
-
equals
- Overrides:
equalsin classRdfModelObject
-
hashCode
public abstract int hashCode()- Overrides:
hashCodein classRdfModelObject
-
clone
-
getResource
public org.apache.jena.rdf.model.Resource getResource()- Returns:
- Resource for the license, or null if no resource has been created
-