com.helger.peppol.businesscard.v2.ObjectFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of peppol-directory-businesscard Show documentation
Show all versions of peppol-directory-businesscard Show documentation
The Peppol Directory Business Card data model
package com.helger.peppol.businesscard.v2;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.xml.namespace.QName;
import com.helger.commons.annotation.CodingStyleguideUnaware;
import jakarta.xml.bind.JAXBElement;
import jakarta.xml.bind.annotation.XmlElementDecl;
import jakarta.xml.bind.annotation.XmlRegistry;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the com.helger.peppol.businesscard.v2 package.
* An ObjectFactory allows you to programmatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
This class was annotated by ph-jaxb-plugin -Xph-annotate
*
*
*/
@XmlRegistry
@CodingStyleguideUnaware
public class ObjectFactory {
public static final QName _BusinessCard_QNAME = new QName("http://www.peppol.eu/schema/pd/businesscard/20161123/", "BusinessCard");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.helger.peppol.businesscard.v2
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link PD2BusinessCardType }
*
* @return
* the new instance of {@link PD2BusinessCardType } The created PD2BusinessCardType object and never null
.
*/
@Nonnull
public PD2BusinessCardType createPD2BusinessCardType() {
return new PD2BusinessCardType();
}
/**
* Create an instance of {@link PD2IdentifierType }
*
* @return
* the new instance of {@link PD2IdentifierType } The created PD2IdentifierType object and never null
.
*/
@Nonnull
public PD2IdentifierType createPD2IdentifierType() {
return new PD2IdentifierType();
}
/**
* Create an instance of {@link PD2BusinessEntityType }
*
* @return
* the new instance of {@link PD2BusinessEntityType } The created PD2BusinessEntityType object and never null
.
*/
@Nonnull
public PD2BusinessEntityType createPD2BusinessEntityType() {
return new PD2BusinessEntityType();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link PD2BusinessCardType }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link PD2BusinessCardType }{@code >} The created JAXBElement and never null
.
*/
@XmlElementDecl(namespace = "http://www.peppol.eu/schema/pd/businesscard/20161123/", name = "BusinessCard")
@Nonnull
public JAXBElement createBusinessCard(
@Nullable
final PD2BusinessCardType value) {
return new JAXBElement<>(_BusinessCard_QNAME, PD2BusinessCardType.class, null, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy