Skip to content

Commit c8a0e16

Browse files
authored
Merge pull request #102 from spdx/publicmodelstore
Add a getter for the License Model Store
2 parents c567321 + 3f12bf0 commit c8a0e16

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/main/java/org/spdx/library/model/license/ListedLicenses.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import org.spdx.library.InvalidSPDXAnalysisException;
3232
import org.spdx.library.SpdxConstants;
3333
import org.spdx.library.model.SpdxModelFactory;
34+
import org.spdx.storage.IModelStore;
3435
import org.spdx.storage.listedlicense.IListedLicenseStore;
3536
import org.spdx.storage.listedlicense.SpdxListedLicenseLocalStore;
3637
import org.spdx.storage.listedlicense.SpdxListedLicenseWebStore;
@@ -236,6 +237,13 @@ public Optional<String> listedLicenseIdCaseSensitive(String licenseId) {
236237
*/
237238
public Optional<String> listedExceptionIdCaseSensitive(String exceptionId) {
238239
return this.licenseModelStore.listedExceptionIdCaseSensitive(exceptionId);
239-
}
240+
}
241+
242+
/**
243+
* @return model store for listed licenses
244+
*/
245+
public IModelStore getLicenseModelStore() {
246+
return this.licenseModelStore;
247+
}
240248

241249
}

0 commit comments

Comments
 (0)