com.helger.xsds.xades141.CXAdES141 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ph-xsds-xades141 Show documentation
Show all versions of ph-xsds-xades141 Show documentation
XAdES 1.4.1 wrapped in JAXB
/**
* Copyright (C) 2016-2021 Philip Helger (www.helger.com)
* 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.xsds.xades141;
import javax.annotation.Nonnull;
import javax.annotation.concurrent.Immutable;
import com.helger.commons.annotation.ReturnsMutableCopy;
import com.helger.commons.collection.impl.CommonsArrayList;
import com.helger.commons.collection.impl.ICommonsList;
import com.helger.commons.io.resource.ClassPathResource;
import com.helger.xsds.xades132.CXAdES132;
import com.helger.xsds.xmldsig.CXMLDSig;
/**
* Utility class for this schema module
*
* @author Philip Helger
*/
@Immutable
public final class CXAdES141
{
public static final String DEFAULT_PREFIX = "xades141";
public static final String NAMESPACE_URI = "http://uri.etsi.org/01903/v1.4.1#";
private CXAdES141 ()
{}
/**
* @return A list of all includes in the correct order. Never
* null
.
*/
@Nonnull
@ReturnsMutableCopy
public static ICommonsList getAllXSDIncludes ()
{
return new CommonsArrayList <> (CXMLDSig.getXSDResource (), CXAdES132.getXSDResource ());
}
// Note: requires XMLDSig 1.0 schema and XAdES 1.3.2
@Nonnull
public static final ClassPathResource getXSDResource ()
{
return new ClassPathResource ("/schemas/XAdES01903v141-201601.xsd", CXAdES141.class.getClassLoader ());
}
@Nonnull
@ReturnsMutableCopy
public static ICommonsList getAllXSDResources ()
{
final ICommonsList ret = getAllXSDIncludes ();
ret.add (getXSDResource ());
return ret;
}
}