Package org.spdx.rdfparser.license
Class LicenseSet
java.lang.Object
org.spdx.rdfparser.model.RdfModelObject
org.spdx.rdfparser.license.AnyLicenseInfo
org.spdx.rdfparser.license.LicenseSet
- Direct Known Subclasses:
ConjunctiveLicenseSet,DisjunctiveLicenseSet
public abstract class LicenseSet extends AnyLicenseInfo
A specific form of license information where there is a set of licenses
represented
- Author:
- Gary O'Neall
-
Field Summary
Fields Modifier and Type Field Description protected Set<AnyLicenseInfo>licenseInfosFields inherited from class org.spdx.rdfparser.model.RdfModelObject
model, modelContainer, node, refreshOnGet, resource -
Constructor Summary
Constructors Constructor Description LicenseSet(IModelContainer modelContainer, org.apache.jena.graph.Node licenseInfoNode)LicenseSet(AnyLicenseInfo[] licenseInfos) -
Method Summary
Modifier and Type Method Description booleanequivalent(IRdfModel compare)Returns true if the compare object contains properties which would be equal if they were contained in the same RDF ModelAnyLicenseInfo[]getMembers()voidgetPropertiesFromModel()Fetch all of the properties from the model and populate the local Java propertiesvoidpopulateModel()Populate the RDF model from the Java propertiesvoidsetMembers(AnyLicenseInfo[] licenseInfos)Sets the members of the license set.List<String>verify()Methods inherited from class org.spdx.rdfparser.license.AnyLicenseInfo
clone, equals, getResource, hashCode, toStringMethods 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, 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
-
Field Details
-
Constructor Details
-
LicenseSet
public LicenseSet(IModelContainer modelContainer, org.apache.jena.graph.Node licenseInfoNode) throws InvalidSPDXAnalysisException- Parameters:
modelContainer- container which includes the licenselicenseInfoNode- Node in the RDF model which defines the licenseSet- Throws:
InvalidSPDXAnalysisException
-
LicenseSet
- Parameters:
licenseInfos- Set of licenses
-
-
Method Details
-
getPropertiesFromModel
Description copied from class:RdfModelObjectFetch all of the properties from the model and populate the local Java properties- Specified by:
getPropertiesFromModelin classRdfModelObject- Throws:
InvalidSPDXAnalysisException
-
setMembers
Sets the members of the license set. Clears any previous members- Parameters:
licenseInfos- New members for the set- Throws:
InvalidSPDXAnalysisException
-
getMembers
- Returns:
- Members of the license set
-
verify
- Returns:
- List of validation errors for any non SPDX compliant properties.
-
equivalent
Description copied from interface:IRdfModelReturns true if the compare object contains properties which would be equal if they were contained in the same RDF Model- Returns:
-
populateModel
Description copied from class:RdfModelObjectPopulate the RDF model from the Java properties- Specified by:
populateModelin classAnyLicenseInfo- Throws:
InvalidSPDXAnalysisException
-