public class ExtractedLicenseInfo extends SimpleLicensingInfo implements Comparable<ExtractedLicenseInfo>
comment, licenseId, name, seeAlsomodel, modelContainer, node, refreshOnGet, resource| Constructor and Description |
|---|
ExtractedLicenseInfo(IModelContainer modelContainer,
org.apache.jena.graph.Node licenseInfoNode) |
ExtractedLicenseInfo(String licenseID,
String licenseText) |
ExtractedLicenseInfo(String id,
String text,
String licenseName,
String[] crossReferenceUrls,
String comment) |
| Modifier and Type | Method and Description |
|---|---|
AnyLicenseInfo |
clone() |
int |
compareTo(ExtractedLicenseInfo o) |
boolean |
equals(Object o) |
boolean |
equivalent(IRdfModel compare)
Returns true if the compare object contains properties which would be equal if they were contained in the same RDF Model
|
String |
getExtractedText() |
void |
getPropertiesFromModel()
Fetch all of the properties from the model and populate the local Java properties
|
org.apache.jena.rdf.model.Resource |
getType(org.apache.jena.rdf.model.Model model) |
int |
hashCode() |
void |
populateModel()
Populate the RDF model from the Java properties
|
void |
setExtractedText(String text) |
String |
toString() |
List<String> |
verify() |
findDuplicateResource, getComment, getLicenseId, getName, getSeeAlso, getUri, setComment, setLicenseId, setName, setSeeAlsogetResourceaddPropertyUriValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, arraysEquivalent, createResource, createResource, equivalentConsideringNull, findAnnotationPropertyValues, findAnyLicenseInfoPropertyValue, findAnyLicenseInfoPropertyValues, findChecksumPropertyValue, findCreationInfoPropertyValue, 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, setSingleObjectForSameNodepublic ExtractedLicenseInfo(IModelContainer modelContainer, org.apache.jena.graph.Node licenseInfoNode) throws InvalidSPDXAnalysisException
modelContainer - container which includes the licenselicenseInfoNode - Node that defines the ExtractedLicenseInfoInvalidSPDXAnalysisExceptionpublic ExtractedLicenseInfo(String id, String text, String licenseName, String[] crossReferenceUrls, String comment)
id - licenseIDtext - license textlicenseName - license namecrossReferenceUrls - Optional URL's that refer to the same licensecomment - optional commentpublic void getPropertiesFromModel()
throws InvalidSPDXAnalysisException
RdfModelObjectgetPropertiesFromModel in class SimpleLicensingInfoInvalidSPDXAnalysisExceptionpublic void populateModel()
throws InvalidSPDXAnalysisException
RdfModelObjectpopulateModel in class SimpleLicensingInfoInvalidSPDXAnalysisExceptionpublic org.apache.jena.rdf.model.Resource getType(org.apache.jena.rdf.model.Model model)
getType in class RdfModelObjectpublic String toString()
toString in class AnyLicenseInfopublic String getExtractedText()
public void setExtractedText(String text)
text - the text to setpublic int hashCode()
hashCode in class SimpleLicensingInfopublic boolean equals(Object o)
equals in class SimpleLicensingInfopublic AnyLicenseInfo clone()
clone in class AnyLicenseInfopublic boolean equivalent(IRdfModel compare)
IRdfModelequivalent in interface IRdfModelequivalent in class SimpleLicensingInfopublic int compareTo(ExtractedLicenseInfo o)
compareTo in interface Comparable<ExtractedLicenseInfo>Copyright © 2017 Linux Foundation. All Rights Reserved.