Package org.spdx.rdfparser.license
Class DisjunctiveLicenseSet
java.lang.Object
org.spdx.rdfparser.model.RdfModelObject
org.spdx.rdfparser.license.AnyLicenseInfo
org.spdx.rdfparser.license.LicenseSet
org.spdx.rdfparser.license.DisjunctiveLicenseSet
public class DisjunctiveLicenseSet extends LicenseSet
A set of licenses where there is a choice of one of the licenses in the set
- 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 DisjunctiveLicenseSet(IModelContainer modelContainer, org.apache.jena.graph.Node licenseInfoNode)DisjunctiveLicenseSet(AnyLicenseInfo[] disjunctiveLicenses) -
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 Modelprotected AnyLicenseInfo[]getFlattenedMembers()Disjunctive 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
-
DisjunctiveLicenseSet
public DisjunctiveLicenseSet(IModelContainer modelContainer, org.apache.jena.graph.Node licenseInfoNode) throws InvalidSPDXAnalysisException- Parameters:
modelContainer- container which includes the licenselicenseInfoNode- Node that defines the disjunctive license set- Throws:
InvalidSPDXAnalysisException
-
DisjunctiveLicenseSet
- Parameters:
disjunctiveLicenses-
-
-
Method Details
-
toString
- Specified by:
toStringin classAnyLicenseInfo
-
hashCode
public int hashCode()- Specified by:
hashCodein classAnyLicenseInfo
-
equals
- Specified by:
equalsin classAnyLicenseInfo
-
clone
- Specified by:
clonein classAnyLicenseInfo
-
getFlattenedMembers
Disjunctive license sets can contain other conjunctive license sets as members. Logically, the members of these "sub-disjunctive license sets" could be direct members and have the same meaning.- Returns:
- all members "flattening out" disjunctive license sets which are members of this set
-
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
-