Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspernielsen committed Nov 4, 2024
1 parent 38137e5 commit 218a214
Show file tree
Hide file tree
Showing 553 changed files with 141,591 additions and 0 deletions.
Binary file not shown.
File renamed without changes.
2 changes: 2 additions & 0 deletions xml-bindings/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
<modules>
<module>s-100</module>
<module>s-124</module>
<module>s-125</module>
<module>s-201</module>
</modules>

<properties>
Expand Down
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;
}

}
Loading

0 comments on commit 218a214

Please sign in to comment.