com.helger.asic.jaxb.AsicReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ph-asic Show documentation
Show all versions of ph-asic Show documentation
Generic implementation of ASiC-E archives in accordance with ETSI 102 918 v1.3.1.
/**
* Copyright (C) 2015-2017 difi (www.difi.no)
* Copyright (C) 2018-2021 Philip Helger (www.helger.com)
* philip[at]helger[dot]com
*
* This Source Code Form is subject to the terms of the
* Mozilla Public License, v. 2.0.
* If a copy of the MPL was not distributed
* with this file, You can obtain one at
* https://mozilla.org/MPL/2.0/
*/
package com.helger.asic.jaxb;
import javax.annotation.Nonnull;
import javax.annotation.concurrent.NotThreadSafe;
import com.helger.asic.jaxb.cades.ASiCManifestType;
import com.helger.asic.jaxb.opendocument.manifest.Manifest;
import com.helger.jaxb.builder.JAXBReaderBuilder;
/**
* A reader builder for Asic documents.
*
* @author Philip Helger
* @param
* The Asic implementation class to be read
*/
@NotThreadSafe
public class AsicReader extends JAXBReaderBuilder >
{
public AsicReader (@Nonnull final EAsicDocumentType eDocType, @Nonnull final Class aImplClass)
{
super (eDocType, aImplClass);
}
/**
* Create a reader builder for ASiCManifestType.
*
* @return The builder and never null
*/
@Nonnull
public static AsicReader asicManifest ()
{
return new AsicReader <> (EAsicDocumentType.ASIC_MANIFEST, ASiCManifestType.class);
}
/**
* Create a reader builder for Manifest.
*
* @return The builder and never null
*/
@Nonnull
public static AsicReader oasisManifest ()
{
return new AsicReader <> (EAsicDocumentType.OASIS_MANIFEST, Manifest.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy