Skip to content

Commit

Permalink
Merge pull request #53 from robinsongarciax/master
Browse files Browse the repository at this point in the history
XHE envelope for DBNAlliance
  • Loading branch information
phax authored Jun 26, 2024
2 parents 43e93e9 + 3dd69f4 commit 71dd72d
Show file tree
Hide file tree
Showing 9 changed files with 2,426 additions and 0 deletions.
157 changes: 157 additions & 0 deletions dbnalliance-xhe/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>peppol-commons-parent-pom</artifactId>
<groupId>com.helger.peppol</groupId>
<version>9.4.1-SNAPSHOT</version>
</parent>

<groupId>com.helger.peppol</groupId>
<artifactId>dbnalliance-xhe</artifactId>
<version>9.4.1-SNAPSHOT</version>
<packaging>bundle</packaging>

<name>dbnalliance-xhe</name>
<description>Library for reading and writing OASIS Exchange Header Envelope (XHE) Version 1.0 documents conforming to the DBNAlliance specifications</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>

<organization>
<name>Philip Helger</name>
<url>http://www.helger.com</url>
</organization>

<developers>
<developer>
<id>philip</id>
<name>Philip Helger</name>
<email>ph(at)helger.com</email>
<url>http://www.helger.com</url>
</developer>
</developers>

<dependencies>
<dependency>
<groupId>com.helger.commons</groupId>
<artifactId>ph-commons</artifactId>
</dependency>
<dependency>
<groupId>com.helger.commons</groupId>
<artifactId>ph-jaxb</artifactId>
</dependency>
<dependency>
<groupId>com.helger.commons</groupId>
<artifactId>ph-datetime</artifactId>
</dependency>
<dependency>
<groupId>com.helger</groupId>
<artifactId>ph-xhe</artifactId>
<version>4.0.1</version>
</dependency>
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-commons</artifactId>
</dependency>
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-id</artifactId>
</dependency>

<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
<scope>compile</scope>
<optional>true</optional>
</dependency>

<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-testfiles</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Automatic-Module-Name>com.helger.peppol.sbdh</Automatic-Module-Name>
<Export-Package>
com.helger.peppol.sbdh,
com.helger.peppol.sbdh.payload,
com.helger.peppol.sbdh.read,
com.helger.peppol.sbdh.write,
com.helger.peppol.sbdh.spec12
</Export-Package>
<Import-Package>!javax.annotation.*,*</Import-Package>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>${jaxb-plugin.group}</groupId>
<artifactId>${jaxb-plugin.artifact}</artifactId>
<version>${jaxb-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaDirectory>src/main/resources/external/schemas</schemaDirectory>
<bindingDirectory>src/main/jaxb</bindingDirectory>
<extension>true</extension>
<strict>false</strict>
<args>
<arg>-no-header</arg>
<arg>-Xph-default-locale</arg>
<arg>en_US</arg>
<arg>-Xph-annotate</arg>
<arg>-Xph-fields-private</arg>
<arg>-Xph-code-quality</arg>
<arg>-Xph-implements</arg>
<arg>java.io.Serializable</arg>
<arg>-Xph-equalshashcode</arg>
<arg>-Xph-tostring</arg>
<arg>-Xph-list-extension</arg>
<arg>-Xph-csu</arg>
<arg>-Xph-cloneable2</arg>
<arg>-Xph-offset-dt-extension</arg>
</args>
</configuration>
<dependencies>
<dependency>
<groupId>com.helger</groupId>
<artifactId>ph-jaxb-plugin</artifactId>
<version>${ph-jaxb-plugin.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Copyright (C) 2014-2024 Philip Helger
* philip[at]helger[dot]com
*
* 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 com.helger.peppol.xhe;

import javax.annotation.concurrent.Immutable;


/**
* Constants for the usage of XHE in DBNAlliance.
*
* @author Robinson Garcia
*/
@Immutable
public final class CDBNAllianceXHE
{
/** The expected XHE version */
public static final String XHE_VERSION_ID = "1.0";

/** Constant for the Data Model */
public static final String CUSTOMIZATION_ID = "http://docs.oasisopen.org/bdxr/ns/XHE/1/ExchangeHeaderEnvelope::XHE##dbnalliance-envelope-1.0";

/** Constant for the identifier scheme */
public static final String CUSTOMIZATION_SCHEMA_ID = "bdx-docid-qns";

/** Constant for the reference to the DBNAlliance specification */
public static final String PROFILE_ID = "dbnalliance-envelope-1.0";

}
Loading

0 comments on commit 71dd72d

Please sign in to comment.