Uses of Class
org.spdx.library.model.license.AnyLicenseInfo
| Package | Description |
|---|---|
| org.spdx.library.model |
Copyright (c) 2019 Source Auditor Inc.
|
| org.spdx.library.model.license | |
| org.spdx.utility.compare |
Utility classes for comparing SPDX model objects
|
-
Uses of AnyLicenseInfo in org.spdx.library.model
Methods in org.spdx.library.model that return AnyLicenseInfo Modifier and Type Method Description AnyLicenseInfoSpdxDocument. getDataLicense()AnyLicenseInfoSpdxItem. getLicenseConcluded()AnyLicenseInfoSpdxPackage. getLicenseDeclared()Methods in org.spdx.library.model that return types with arguments of type AnyLicenseInfo Modifier and Type Method Description protected Optional<AnyLicenseInfo>ModelObject. getAnyLicenseInfoPropertyValue(String propertyName)Converts property values to an AnyLicenseInfo if possible - if NONE or NOASSERTION URI value, convert to the appropriate licenseCollection<AnyLicenseInfo>SpdxItem. getLicenseInfoFromFiles()Methods in org.spdx.library.model with parameters of type AnyLicenseInfo Modifier and Type Method Description SpdxPackage.SpdxPackageBuilderSpdxPackage.SpdxPackageBuilder. addLicenseInfosFromFile(AnyLicenseInfo licenseInfo)SpdxPackage.SpdxPackageBuilderModelObject. createPackage(String id, String name, AnyLicenseInfo concludedLicense, String copyrightText, AnyLicenseInfo licenseDeclared)Create an SpdxPackageBuilder with all required fields for a filesAnalyzed=false using this objects model store and document URISpdxFile.SpdxFileBuilderModelObject. createSpdxFile(String id, String name, AnyLicenseInfo concludedLicense, Collection<AnyLicenseInfo> seenLicense, String copyrightText, Checksum sha1)Create an SpdxFileBuilder with all of the required properties - the build() method will build the fileSpdxSnippet.SpdxSnippetBuilderModelObject. createSpdxSnippet(String id, String name, AnyLicenseInfo concludedLicense, Collection<AnyLicenseInfo> seenLicense, String copyrightText, SpdxFile snippetFromFile, int startByte, int endByte)Create an SpdxSnippetBuilder with all of the required properties - the build() method will build the filevoidSpdxDocument. setDataLicense(AnyLicenseInfo dataLicense)SpdxFileSpdxFile. setLicenseConcluded(AnyLicenseInfo license)SpdxItemSpdxItem. setLicenseConcluded(AnyLicenseInfo license)Set the licenseConcludedSpdxPackageSpdxPackage. setLicenseDeclared(AnyLicenseInfo licenseDeclared)Set the licenseDeclaredMethod parameters in org.spdx.library.model with type arguments of type AnyLicenseInfo Modifier and Type Method Description ConjunctiveLicenseSetModelObject. createConjunctiveLicenseSet(Collection<AnyLicenseInfo> members)DisjunctiveLicenseSetModelObject. createDisjunctiveLicenseSet(Collection<AnyLicenseInfo> members)SpdxFile.SpdxFileBuilderModelObject. createSpdxFile(String id, String name, AnyLicenseInfo concludedLicense, Collection<AnyLicenseInfo> seenLicense, String copyrightText, Checksum sha1)Create an SpdxFileBuilder with all of the required properties - the build() method will build the fileSpdxSnippet.SpdxSnippetBuilderModelObject. createSpdxSnippet(String id, String name, AnyLicenseInfo concludedLicense, Collection<AnyLicenseInfo> seenLicense, String copyrightText, SpdxFile snippetFromFile, int startByte, int endByte)Create an SpdxSnippetBuilder with all of the required properties - the build() method will build the fileSpdxPackage.SpdxPackageBuilderSpdxPackage.SpdxPackageBuilder. setLicenseInfosFromFile(Collection<AnyLicenseInfo> licenseInfosFromFile)Constructors in org.spdx.library.model with parameters of type AnyLicenseInfo Constructor Description SpdxFileBuilder(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, String name, AnyLicenseInfo concludedLicense, Collection<AnyLicenseInfo> licenseInfosFromFile, String copyrightText, Checksum sha1)Build a file with the required parametersSpdxPackageBuilder(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, String name, AnyLicenseInfo concludedLicense, String copyrightText, AnyLicenseInfo licenseDeclared)Build an SpdxPackage with the required parameters if isFilesAnalyzed is false - note isFilesAnalyzed must be explicitly set to falseSpdxSnippetBuilder(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, String name, AnyLicenseInfo concludedLicense, Collection<AnyLicenseInfo> licenseInfosFromFile, String copyrightText, SpdxFile snippetFromFile, int startByte, int endByte)Build a snippet with the required parametersConstructor parameters in org.spdx.library.model with type arguments of type AnyLicenseInfo Constructor Description SpdxFileBuilder(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, String name, AnyLicenseInfo concludedLicense, Collection<AnyLicenseInfo> licenseInfosFromFile, String copyrightText, Checksum sha1)Build a file with the required parametersSpdxSnippetBuilder(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, String name, AnyLicenseInfo concludedLicense, Collection<AnyLicenseInfo> licenseInfosFromFile, String copyrightText, SpdxFile snippetFromFile, int startByte, int endByte)Build a snippet with the required parameters -
Uses of AnyLicenseInfo in org.spdx.library.model.license
Subclasses of AnyLicenseInfo in org.spdx.library.model.license Modifier and Type Class Description classAbstractExtractedLicenseInfoExtractedLicenseInfo which can be represented as a concrete ExtractedLicenseInfo within the same SPDX document with all properties accessible, or as an ExternalExtractedLicenseInfo which represents a license not included within the SPDX document.classConjunctiveLicenseSetA set of licenses where all of the licenses applyclassDisjunctiveLicenseSetA set of licenses where there is a choice of one of the licenses in the setclassExternalExtractedLicenseInfoclassExtractedLicenseInfoAn ExtractedLicensingInfo represents a license or licensing notice that was found in the package.classLicenseDescribes a license All licenses have an ID.classLicenseSetA specific form of license information where there is a set of licenses representedclassOrLaterOperatorA license that has an or later operator (e.g.classSimpleLicensingInfoThe SimpleLicenseInfo class includes all resources that represent simple, atomic, licensing information.classSpdxListedLicenseListed license for SPDX as listed at spdx.org/licensesclassSpdxNoAssertionLicenseSpecial class of license to represent no asserted license license in the file or packagesclassSpdxNoneLicenseA special license meaning that no license was foundclassWithExceptionOperatorA license that has a With exception operator (e.g.Methods in org.spdx.library.model.license that return AnyLicenseInfo Modifier and Type Method Description AnyLicenseInfoWithExceptionOperator. getLicense()static AnyLicenseInfoLicenseInfoFactory. parseSPDXLicenseString(String licenseString)Parses a license string and converts it into a SPDXLicenseInfo object Syntax - A license set must start and end with a parenthesis "(" A conjunctive license set will have and AND after the first licenseInfo term A disjunctive license set will have an OR after the first licenseInfo term If there is no And or Or, then it is converted to a simple license type A space or tab must be used between license ID's and the keywords AND and OR A licenseID must NOT be "AND" or "OR"static AnyLicenseInfoLicenseInfoFactory. parseSPDXLicenseString(String licenseString, IModelStore store, String documentUri, ModelCopyManager copyManager)Parses a license string and converts it into a SPDXLicenseInfo object Syntax - A license set must start and end with a parenthesis "(" A conjunctive license set will have and AND after the first licenseInfo term A disjunctive license set will have an OR after the first licenseInfo term If there is no And or Or, then it is converted to a simple license type A space or tab must be used between license ID's and the keywords AND and OR A licenseID must NOT be "AND" or "OR"Methods in org.spdx.library.model.license that return types with arguments of type AnyLicenseInfo Modifier and Type Method Description List<AnyLicenseInfo>ConjunctiveLicenseSet. getFlattenedMembers()Conjunctive license sets can contain other conjunctive license sets as members.protected List<AnyLicenseInfo>DisjunctiveLicenseSet. getFlattenedMembers()Disjunctive license sets can contain other conjunctive license sets as members.Collection<AnyLicenseInfo>LicenseSet. getMembers()Methods in org.spdx.library.model.license with parameters of type AnyLicenseInfo Modifier and Type Method Description voidLicenseSet. addMember(AnyLicenseInfo member)Adds a member to the setvoidLicenseSet. removeMember(AnyLicenseInfo member)voidWithExceptionOperator. setLicense(AnyLicenseInfo license)Method parameters in org.spdx.library.model.license with type arguments of type AnyLicenseInfo Modifier and Type Method Description voidLicenseSet. setMembers(Collection<AnyLicenseInfo> licenseInfos)Sets the members of the license set.Constructors in org.spdx.library.model.license with parameters of type AnyLicenseInfo Constructor Description WithExceptionOperator(AnyLicenseInfo license, LicenseException exception) -
Uses of AnyLicenseInfo in org.spdx.utility.compare
Methods in org.spdx.utility.compare that return types with arguments of type AnyLicenseInfo Modifier and Type Method Description List<AnyLicenseInfo>SpdxItemComparer. getUniqueSeenLicenses(SpdxDocument docA, SpdxDocument docB)Get any licenses found in docA but not in docBList<AnyLicenseInfo>SpdxItemDifference. getUniqueSeenLicensesA()List<AnyLicenseInfo>SpdxItemDifference. getUniqueSeenLicensesB()Methods in org.spdx.utility.compare with parameters of type AnyLicenseInfo Modifier and Type Method Description booleanSpdxComparer. compareLicense(int doc1, AnyLicenseInfo license1, int doc2, AnyLicenseInfo license2)Compares two licenses from two different SPDX documents taking into account the extracted license infos who's ID's may be different between the two documents Note: The ExtracedLicenseIDMap must be initialized before this method is invokedstatic booleanLicenseCompareHelper. isLicenseEqual(AnyLicenseInfo license1, AnyLicenseInfo license2, Map<String,String> xlationMap)Compares two licenses from potentially two different documents which may have different license ID's for the same licensestatic booleanLicenseCompareHelper. isLicensePassBlackList(AnyLicenseInfo license, String... blackList)Detect if a license pass black listsstatic booleanLicenseCompareHelper. isLicensePassWhiteList(AnyLicenseInfo license, String... whiteList)Detect if a license pass white listsConstructor parameters in org.spdx.utility.compare with type arguments of type AnyLicenseInfo Constructor Description SpdxFileDifference(SpdxFile fileA, SpdxFile fileB, boolean concludedLicensesEqual, boolean seenLicensesEqual, List<AnyLicenseInfo> uniqueSeenLicensesA, List<AnyLicenseInfo> uniqueSeenLicensesB, boolean checksumsEquals, List<Checksum> uniqueChecksumsA, List<Checksum> uniqueChecksumsB, boolean relationshipsEquals, List<Relationship> uniqueRelationshipA, List<Relationship> uniqueRelationshipB, boolean annotationsEquals, List<Annotation> uniqueAnnotationsA, List<Annotation> uniqueAnnotationsB)SpdxItemDifference(SpdxItem itemA, SpdxItem itemB, boolean concludedLicensesEqual, boolean seenLicensesEqual, List<AnyLicenseInfo> uniqueSeenLicensesA, List<AnyLicenseInfo> uniqueSeenLicensesB, boolean relationshipsEquals, List<Relationship> uniqueRelationshipA, List<Relationship> uniqueRelationshipB, boolean annotationsEquals, List<Annotation> uniqueAnnotationsA, List<Annotation> uniqueAnnotationsB)