Skip to content

Commit

Permalink
Add SPDX header to source files
Browse files Browse the repository at this point in the history
Signed-off-by: Arthit Suriyawongkul <[email protected]>
  • Loading branch information
bact authored and goneall committed Feb 3, 2025
1 parent 93f7b35 commit 44d8c55
Show file tree
Hide file tree
Showing 33 changed files with 295 additions and 228 deletions.
6 changes: 5 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
Contributing
============

Thank you for your interest in `spdx-java-spreadsheet-store`. The project is open-source software, and bug reports, suggestions, and most especially patches are welcome.

Issues
------

`spdx-java-spreadsheet-store` has a [project page on GitHub](https://github.com/spdx/spdx-java-spreadsheet-store) where you can [create an issue](https://github.com/spdx/spdx-java-spreadsheet-store/issues) to report a bug, make a suggestion, or propose a substantial change or improvement that you might like to make. You may also wish to contact the SPDX working group technical team through its mailing list, [[email protected]](mailto:[email protected]).

If you would like to work on a fix for any issue, please assign the issue to yourself prior to creating a Pull Request.

Pull Requests
-------

The source code for `spdx-java-spreadsheet-store` is hosted on [github.com/spdx/spdx-java-spreadsheet-store](https://github.com/spdx/spdx-java-spreadsheet-store). Please review [open pull requests](https://github.com/spdx/spdx-java-spreadsheet-store/pulls) and [active branches](https://github.com/spdx/spdx-java-spreadsheet-store/branches) before committing time to a substantial revision. Work along similar lines may already be in progress.

To submit a pull request via GitHub, fork the repository, create a topic branch from `master` for your work, and send a pull request when ready. If you would prefer to send a patch or grant access to pull from your own Git repository, please contact the project's contributors by e-mail.
Expand All @@ -20,4 +23,5 @@ Once implemented, submit a pull request with `spec/X.X` branch as the parent bra

Licensing
---------
However you choose to contribute, please sign-off in each of your commits that you license your contributions under the terms of [the Developer Certificate of Origin](https://developercertificate.org/). Git has utilities for signing off on commits: `git commit -s` signs a current commit, and `git rebase --signoff <revision-range>` retroactively signs a range of past commits.

However you choose to contribute, please sign-off in each of your commits that you license your contributions under the terms of [the Developer Certificate of Origin](https://developercertificate.org/). Git has utilities for signing off on commits: `git commit -s` signs a current commit, and `git rebase --signoff <revision-range>` retroactively signs a range of past commits.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# spdx-java-spreadsheet-store

Stores SPDX documents in Microsoft Excel formats. Supports both XLS and XLSX file types.

This store supports serializing and deserializing files in XLS and XLSX spreadsheet formats.

This library utilizes the [SPDX Java Library Storage Interface](https://github.com/spdx/Spdx-Java-Library#storage-interface) extending the `ExtendedSpdxStore` which allows for utilizing any underlying store which implements the [SPDX Java Library Storage Interface](https://github.com/spdx/Spdx-Java-Library#storage-interface).

# Using the Library
## Using the Library

This library is intended to be used in conjunction with the [SPDX Java Library](https://github.com/spdx/Spdx-Java-Library).

Expand All @@ -16,10 +17,10 @@ Create an instance of `SpreadsheetStore(IModelStore baseStore, SpreadsheetFormat
- `XLS` - Microsoft Excel 97 to 2003 Workbook format
- `XLSX` - Microsoft Excel workbook format

# Serializing and Deserializing
## Serializing and Deserializing

This library supports the `ISerializableModelStore` interface for serializing and deserializing files based on the format specified.

# Development Status
## Development Status

Mostly stable - although it has not been widely used.
Mostly stable - although it has not been widely used.
15 changes: 8 additions & 7 deletions src/main/java/org/spdx/spreadsheetstore/AbstractSheet.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* Copyright (c) 2020 Source Auditor Inc.
*
/*
* SPDX-FileContributor: Gary O'Neall
* SPDX-FileCopyrightText: Copyright (c) 2020 Source Auditor Inc.
* SPDX-FileType: SOURCE
* SPDX-License-Identifier: Apache-2.0
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
15 changes: 8 additions & 7 deletions src/main/java/org/spdx/spreadsheetstore/AnnotationsSheet.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* Copyright (c) 2020 Source Auditor Inc.
*
/*
* SPDX-FileContributor: Gary O'Neall
* SPDX-FileCopyrightText: Copyright (c) 2020 Source Auditor Inc.
* SPDX-FileType: SOURCE
* SPDX-License-Identifier: Apache-2.0
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
17 changes: 9 additions & 8 deletions src/main/java/org/spdx/spreadsheetstore/DocumentInfoSheet.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* Copyright (c) 2020 Source Auditor Inc.
*
/*
* SPDX-FileContributor: Gary O'Neall
* SPDX-FileCopyrightText: Copyright (c) 2020 Source Auditor Inc.
* SPDX-FileType: SOURCE
* SPDX-License-Identifier: Apache-2.0
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -33,9 +34,9 @@

/**
* Abstract class for sheet containing information about the origins of an SPDX document
*
* Specific versions implemented as subclasses
* @author Gary O'Neall
*
*/
public abstract class DocumentInfoSheet extends AbstractSheet {
static final int SPREADSHEET_VERSION_COL = 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* Copyright (c) 2020 Source Auditor Inc.
*
/*
* SPDX-FileContributor: Gary O'Neall
* SPDX-FileCopyrightText: Copyright (c) 2020 Source Auditor Inc.
* SPDX-FileType: SOURCE
* SPDX-License-Identifier: Apache-2.0
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
15 changes: 8 additions & 7 deletions src/main/java/org/spdx/spreadsheetstore/ExternalRefsSheet.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* Copyright (c) 2020 Source Auditor Inc.
*
/*
* SPDX-FileContributor: Gary O'Neall
* SPDX-FileCopyrightText: Copyright (c) 2020 Source Auditor Inc.
* SPDX-FileType: SOURCE
* SPDX-License-Identifier: Apache-2.0
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* Copyright (c) 2020 Source Auditor Inc.
*
/*
* SPDX-FileContributor: Gary O'Neall
* SPDX-FileCopyrightText: Copyright (c) 2020 Source Auditor Inc.
* SPDX-FileType: SOURCE
* SPDX-License-Identifier: Apache-2.0
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* Copyright (c) 2020 Source Auditor Inc.
*
/*
* SPDX-FileContributor: Gary O'Neall
* SPDX-FileCopyrightText: Copyright (c) 2020 Source Auditor Inc.
* SPDX-FileType: SOURCE
* SPDX-License-Identifier: Apache-2.0
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
15 changes: 8 additions & 7 deletions src/main/java/org/spdx/spreadsheetstore/PackageInfoSheet.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* Copyright (c) 2020 Source Auditor Inc.
*
/*
* SPDX-FileContributor: Gary O'Neall
* SPDX-FileCopyrightText: Copyright (c) 2020 Source Auditor Inc.
* SPDX-FileType: SOURCE
* SPDX-License-Identifier: Apache-2.0
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* Copyright (c) 2020 Source Auditor Inc.
*
/*
* SPDX-FileContributor: Gary O'Neall
* SPDX-FileCopyrightText: Copyright (c) 2020 Source Auditor Inc.
* SPDX-FileType: SOURCE
* SPDX-License-Identifier: Apache-2.0
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* Copyright (c) 2020 Source Auditor Inc.
*
/*
* SPDX-FileContributor: Gary O'Neall
* SPDX-FileCopyrightText: Copyright (c) 2020 Source Auditor Inc.
* SPDX-FileType: SOURCE
* SPDX-License-Identifier: Apache-2.0
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* Copyright (c) 2020 Source Auditor Inc.
*
/*
* SPDX-FileContributor: Gary O'Neall
* SPDX-FileCopyrightText: Copyright (c) 2020 Source Auditor Inc.
* SPDX-FileType: SOURCE
* SPDX-License-Identifier: Apache-2.0
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* Copyright (c) 2020 Source Auditor Inc.
*
/*
* SPDX-FileContributor: Gary O'Neall
* SPDX-FileCopyrightText: Copyright (c) 2020 Source Auditor Inc.
* SPDX-FileType: SOURCE
* SPDX-License-Identifier: Apache-2.0
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
15 changes: 8 additions & 7 deletions src/main/java/org/spdx/spreadsheetstore/PerFileSheet.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* Copyright (c) 2020 Source Auditor Inc.
*
/*
* SPDX-FileContributor: Gary O'Neall
* SPDX-FileCopyrightText: Copyright (c) 2020 Source Auditor Inc.
* SPDX-FileType: SOURCE
* SPDX-License-Identifier: Apache-2.0
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
15 changes: 8 additions & 7 deletions src/main/java/org/spdx/spreadsheetstore/PerFileSheetV2d0.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* Copyright (c) 2020 Source Auditor Inc.
*
/*
* SPDX-FileContributor: Gary O'Neall
* SPDX-FileCopyrightText: Copyright (c) 2020 Source Auditor Inc.
* SPDX-FileType: SOURCE
* SPDX-License-Identifier: Apache-2.0
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
Loading

0 comments on commit 44d8c55

Please sign in to comment.