public class SpdxDocument extends SpdxElement
annotations, comment, name, relationshipsmodel, modelContainer, node, refreshOnGet, resource| Constructor and Description |
|---|
SpdxDocument(SpdxDocumentContainer documentContainer,
org.apache.jena.graph.Node node) |
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, addPropertyValue, createResource, createResource, equals, 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, hashCode, 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 SpdxDocument(SpdxDocumentContainer documentContainer, org.apache.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 org.apache.jena.rdf.model.Resource getType(org.apache.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 © 2017 Linux Foundation. All Rights Reserved.