Package org.spdx.rdfparser.license
Class OrLaterOperator
java.lang.Object
org.spdx.rdfparser.model.RdfModelObject
org.spdx.rdfparser.license.AnyLicenseInfo
org.spdx.rdfparser.license.OrLaterOperator
public class OrLaterOperator extends AnyLicenseInfo
A license that has an or later operator (e.g. GPL-2.0+)
- 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 OrLaterOperator(IModelContainer modelContainer, org.apache.jena.graph.Node licenseInfoNode)Create an OrLaterOperator from a node in an existing RDF modelOrLaterOperator(SimpleLicensingInfo license) -
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 ModelSimpleLicensingInfogetLicense()voidgetPropertiesFromModel()Fetch all of the properties from the model and populate the local Java propertiesorg.apache.jena.rdf.model.ResourcegetType(org.apache.jena.rdf.model.Model model)StringgetUri(IModelContainer modelContainer)Get the URI for this RDF object.inthashCode()voidpopulateModel()Populate the RDF model from the Java propertiesvoidsetLicense(SimpleLicensingInfo license)StringtoString()List<String>verify()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, 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
-
OrLaterOperator
public OrLaterOperator(IModelContainer modelContainer, org.apache.jena.graph.Node licenseInfoNode) throws InvalidSPDXAnalysisExceptionCreate an OrLaterOperator from a node in an existing RDF model- Parameters:
enclosingSpdxDocument- document which includes the licenselicenseInfoNode- Node that defines the OrLaterOperator- Throws:
InvalidSPDXAnalysisException
-
OrLaterOperator
-
-
Method Details
-
getLicense
- Returns:
- the license
-
setLicense
- Parameters:
license- the license to set- Throws:
InvalidSPDXAnalysisException
-
toString
- Specified by:
toStringin classAnyLicenseInfo
-
equals
- Specified by:
equalsin classAnyLicenseInfo
-
hashCode
public int hashCode()- Specified by:
hashCodein classAnyLicenseInfo
-
verify
- Returns:
- List of validation errors for any non SPDX compliant properties.
-
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- Returns:
-
populateModel
Description copied from class:RdfModelObjectPopulate the RDF model from the Java properties- Specified by:
populateModelin classAnyLicenseInfo- Throws:
InvalidSPDXAnalysisException
-
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
-
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
-