Package org.spdx.rdfparser.license
Class ConjunctiveLicenseSet
java.lang.Object
org.spdx.rdfparser.model.RdfModelObject
org.spdx.rdfparser.license.AnyLicenseInfo
org.spdx.rdfparser.license.LicenseSet
org.spdx.rdfparser.license.ConjunctiveLicenseSet
public class ConjunctiveLicenseSet extends LicenseSet
A set of licenses where all of the licenses apply
- Author:
- Gary O'Neall
-
Field Summary
Fields inherited from class org.spdx.rdfparser.model.RdfModelObject
model, modelContainer, node, refreshOnGet, resource -
Constructor Summary
Constructors Constructor Description ConjunctiveLicenseSet(IModelContainer modelContainer, org.apache.jena.graph.Node node)ConjunctiveLicenseSet(AnyLicenseInfo[] conjunctiveLicenses) -
Method Summary
Modifier and Type Method Description AnyLicenseInfoclone()booleanequals(Object o)booleanequivalent(IRdfModel compare)Returns true if the compare object contains properties which would be equal if they were contained in the same RDF ModelAnyLicenseInfo[]getFlattenedMembers()Conjunctive license sets can contain other conjunctive license sets as members.org.apache.jena.rdf.model.ResourcegetType(org.apache.jena.rdf.model.Model model)StringgetUri(IModelContainer modelContainer)Get the URI for this RDF object.inthashCode()StringtoString()Methods inherited from class org.spdx.rdfparser.license.LicenseSet
getMembers, getPropertiesFromModel, populateModel, setMembers, verifyMethods 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, findMultipleDoapPropertyValues, findMultipleElementPropertyValues, findMultiplePropertyValues, findReferenceTypePropertyValue, findRelationshipPropertyValues, findReviewPropertyValues, findSinglePointerPropertyValue, findSinglePropertyValue, findStartEndPointerPropertyValues, findUriPropertyValue, findUriPropertyValues, findVerificationCodePropertyValue, getNode, isRefreshOnGet, removePropertyValue, resourcesEqual, setMultipleObjectsForSameNode, setPropertyUriValue, setPropertyUriValues, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setSingleObjectForSameNode
-
Constructor Details
-
ConjunctiveLicenseSet
public ConjunctiveLicenseSet(IModelContainer modelContainer, org.apache.jena.graph.Node node) throws InvalidSPDXAnalysisException- Parameters:
modelContainer- container which includes the licensenode- Node that defines the conjunctive license set- Throws:
InvalidSPDXAnalysisException
-
ConjunctiveLicenseSet
- Parameters:
conjunctiveLicenses-
-
-
Method Details
-
toString
- Specified by:
toStringin classAnyLicenseInfo
-
hashCode
public int hashCode()- Specified by:
hashCodein classAnyLicenseInfo
-
equals
- Specified by:
equalsin classAnyLicenseInfo
-
getFlattenedMembers
Conjunctive license sets can contain other conjunctive license sets as members. Logically, the members of these "sub-conjunctive license sets" could be direct members and have the same meaning.- Returns:
- all members "flattening out" conjunctive license sets which are members of this set
-
clone
- Specified by:
clonein classAnyLicenseInfo
-
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- Specified by:
equivalentin interfaceIRdfModel- Overrides:
equivalentin classLicenseSet- Returns:
-
getUri
Description copied from class:RdfModelObjectGet the URI for this RDF object. Null if this is for an anonomous node.- Specified by:
getUriin classRdfModelObject- Returns:
- Throws:
InvalidSPDXAnalysisException
-
getType
public org.apache.jena.rdf.model.Resource getType(org.apache.jena.rdf.model.Model model)- Specified by:
getTypein classRdfModelObject- Returns:
- the RDF class name for the object
-