forked from iho-ohi/S-100-xmlbindings
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38137e5
commit 218a214
Showing
553 changed files
with
141,591 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+1.77 MB
specifications/s-125/0.0.1/S-125 Product Specification_0.0.1 (rev1).docx
Binary file not shown.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
xml-bindings/java/s-125/0.0.1/java/org/grad/eNav/s125/utils/GIRegistryInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/* | ||
* Copyright (c) 2024 GLA Research and Development Directorate | ||
* | ||
* 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 | ||
* | ||
* 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. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.grad.eNav.s125.utils; | ||
|
||
import _int.iho.s100.catalog._5_2.S100CompliancyCategory; | ||
import _int.iho.s100.catalog._5_2.S100ProductSpecification; | ||
|
||
import java.math.BigInteger; | ||
import java.time.LocalDate; | ||
|
||
/** | ||
* The IHO GI Registry Information Class. | ||
* </p> | ||
* This class contains hard coded information on the product specification used | ||
* to generate this package. | ||
* <p/> | ||
* THis is required to be updated in every change of the S-100 or the | ||
* data produce specification. | ||
* | ||
* @author Nikolaos Vastardis (email: Nikolaos.Vastardis@gla-rad.org) | ||
*/ | ||
public class GIRegistryInfo { | ||
|
||
/** | ||
* The Data Product Name as per the IHO GI Registry. | ||
*/ | ||
public static final String DATA_PRODUCT_NAME = "Marine Aids to Navigation"; | ||
|
||
/** | ||
* The Data Product Identifier as per the IHO GI Registry. | ||
*/ | ||
public static final String DATA_PRODUCT_IDENTIFIER = "S-125"; | ||
|
||
/** | ||
* The Data Product Number as per the IHO GI Registry. | ||
*/ | ||
public static final Integer DATA_PRODUCT_NUMBER = 666; | ||
|
||
/** | ||
* The Data Product Version as per the IHO GI Registry. | ||
*/ | ||
public static final String DATA_PRODUCT_VERSION = "0.0.2"; | ||
|
||
/** | ||
* The Data Product Version as per the IHO GI Registry. | ||
*/ | ||
public static final S100CompliancyCategory DATA_PRODUCT_COMPLIANCY_CATEGORY = S100CompliancyCategory.CATEGORY_1; | ||
|
||
/** | ||
* The Data Product Date as per the IHO GI Registry. | ||
*/ | ||
public static final LocalDate DATA_PRODUCT_DATE = LocalDate.of(2022, 4, 13); | ||
|
||
/** | ||
* Constructs and return the data product specification of this package. | ||
* | ||
* @return the S-100 data product specification of this package | ||
*/ | ||
public static S100ProductSpecification getProductSpecification() { | ||
S100ProductSpecification productSpecification = new S100ProductSpecification(); | ||
productSpecification.setName(DATA_PRODUCT_NAME); | ||
productSpecification.setProductIdentifier(DATA_PRODUCT_IDENTIFIER); | ||
productSpecification.setNumber(BigInteger.valueOf(DATA_PRODUCT_NUMBER)); | ||
productSpecification.setVersion(DATA_PRODUCT_VERSION); | ||
productSpecification.setCompliancyCategory(DATA_PRODUCT_COMPLIANCY_CATEGORY); | ||
productSpecification.setDate(DATA_PRODUCT_DATE); | ||
return productSpecification; | ||
} | ||
|
||
} |
Oops, something went wrong.