public class SpdxDocument extends SpdxElement
annotations, comment, name, relationshipsmodel, modelContainer, node, refreshOnGet, resource| Constructor and Description |
|---|
SpdxDocument(SpdxDocumentContainer documentContainer,
com.hp.hpl.jena.graph.Node node) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtractedLicenseInfos(ExtractedLicenseInfo license) |
boolean |
equivalent(IRdfModel o)
Returns true if the compare object contains properties which would be equal if they were contained in the same RDF Model
|
boolean |
equivalent(IRdfModel o,
boolean testRelationships)
Test for equivalent
|
SPDXCreatorInformation |
getCreationInfo() |
SPDXCreatorInformation |
getCreatorInfo()
Deprecated.
|
AnyLicenseInfo |
getDataLicense() |
String |
getDocumentComment()
Deprecated.
|
SpdxDocumentContainer |
getDocumentContainer() |
SpdxItem[] |
getDocumentDescribes() |
String |
getDocumentNamespace() |
String |
getDocumentUri() |
ExternalDocumentRef[] |
getExternalDocumentRefs() |
ExtractedLicenseInfo[] |
getExtractedLicenseInfos() |
protected String |
getNamePropertyName() |
void |
getPropertiesFromModel()
Fetch all of the properties from the model and populate the local Java properties
|
SPDXReview[] |
getReviewers()
Deprecated.
|
SpdxPackage |
getSpdxPackage()
Deprecated.
|
String |
getSpdxVersion()
Deprecated.
|
String |
getSpecVersion() |
com.hp.hpl.jena.rdf.model.Resource |
getType(com.hp.hpl.jena.rdf.model.Model model) |
String |
getUri(IModelContainer modelContainer)
Get the URI for this RDF object.
|
void |
populateModel()
Populate the RDF model from the Java properties
|
void |
setCreationInfo(SPDXCreatorInformation creationInfo) |
void |
setDataLicense(AnyLicenseInfo dataLicense) |
void |
setExternalDocumentRefs(ExternalDocumentRef[] externalDocumentRefs) |
void |
setExtractedLicenseInfos(ExtractedLicenseInfo[] extractedLicenseInfos) |
void |
setReviewers(SPDXReview[] reviewers)
Deprecated.
|
void |
setSpecVersion(String specVersion) |
List<String> |
verify() |
addAnnotation, addNameToWarnings, addRelationship, arraysEquivalent, arraysEquivalent, clone, clone, cloneAnnotations, cloneRelationships, equivalentConsideringNull, equivalentConsideringNull, getAnnotations, getComment, getId, getName, getRelationships, setAnnotations, setComment, setId, setName, setRelationships, toStringaddPropertyUriValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, createResource, createResource, equals, findAnnotationPropertyValues, findAnyLicenseInfoPropertyValue, findAnyLicenseInfoPropertyValues, findChecksumPropertyValue, findCreationInfoPropertyValue, findDuplicateResource, findElementPropertyValue, findExternalDocRefPropertyValues, findExternalDocRefPropertyValues, findMultipleChecksumPropertyValues, findMultipleDoapPropertyValues, findMultipleElementPropertyValues, findMultiplePropertyValues, findRelationshipPropertyValues, findReviewPropertyValues, findSinglePropertyValue, findUriPropertyValue, findUriPropertyValues, findVerificationCodePropertyValue, getNode, hashCode, isRefreshOnGet, removePropertyValue, resourcesEqual, setMultipleObjectsForSameNode, setPropertyUriValue, setPropertyUriValues, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setSingleObjectForSameNodepublic SpdxDocument(SpdxDocumentContainer documentContainer, com.hp.hpl.jena.graph.Node node) throws InvalidSPDXAnalysisException
documentContainer - node - InvalidSPDXAnalysisExceptionpublic void getPropertiesFromModel()
throws InvalidSPDXAnalysisException
RdfModelObjectgetPropertiesFromModel in class SpdxElementInvalidSPDXAnalysisExceptionpublic SpdxItem[] getDocumentDescribes() throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionpublic String getUri(IModelContainer modelContainer) throws InvalidSPDXAnalysisException
RdfModelObjectgetUri in class SpdxElementInvalidSPDXAnalysisExceptionpublic String getDocumentUri() throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionpublic String getDocumentNamespace() throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionpublic com.hp.hpl.jena.rdf.model.Resource getType(com.hp.hpl.jena.rdf.model.Model model)
getType in class SpdxElementpublic void populateModel()
throws InvalidSPDXAnalysisException
RdfModelObjectpopulateModel in class SpdxElementInvalidSPDXAnalysisExceptionpublic SpdxDocumentContainer getDocumentContainer()
public SPDXCreatorInformation getCreationInfo() throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionpublic void setCreationInfo(SPDXCreatorInformation creationInfo)
creationInfo - the creationInfo to setpublic AnyLicenseInfo getDataLicense() throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionpublic void setDataLicense(AnyLicenseInfo dataLicense) throws InvalidSPDXAnalysisException
dataLicense - the dataLicense to setInvalidSPDXAnalysisExceptionpublic ExternalDocumentRef[] getExternalDocumentRefs() throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionpublic void setExternalDocumentRefs(ExternalDocumentRef[] externalDocumentRefs) throws InvalidSPDXAnalysisException
externalDocumentRefs - the externalDocumentRefs to setInvalidSPDXAnalysisExceptionpublic ExtractedLicenseInfo[] getExtractedLicenseInfos() throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionpublic void setExtractedLicenseInfos(ExtractedLicenseInfo[] extractedLicenseInfos) throws InvalidSPDXAnalysisException
extractedLicenseInfos - the extractedLicenseInfos to setInvalidSPDXAnalysisExceptionpublic String getSpecVersion()
@Deprecated public SPDXReview[] getReviewers() throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisException@Deprecated public void setReviewers(SPDXReview[] reviewers)
reviewers - the reviewers to setpublic void setSpecVersion(String specVersion)
specVersion - the specVersion to setpublic List<String> verify()
verify in interface IRdfModelverify in class SpdxElementpublic boolean equivalent(IRdfModel o)
IRdfModelequivalent in interface IRdfModelequivalent in class SpdxElementpublic boolean equivalent(IRdfModel o, boolean testRelationships)
SpdxElementequivalent in class SpdxElementtestRelationships - If true, test relationshipsprotected String getNamePropertyName()
getNamePropertyName in class SpdxElement@Deprecated public String getSpdxVersion()
@Deprecated public SPDXCreatorInformation getCreatorInfo() throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisException@Deprecated public String getDocumentComment()
@Deprecated public SpdxPackage getSpdxPackage() throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionpublic void addExtractedLicenseInfos(ExtractedLicenseInfo license) throws InvalidSPDXAnalysisException
license - license to be added to the extracted licensing infosInvalidSPDXAnalysisExceptionCopyright © 2016 Linux Foundation. All Rights Reserved.