com.helger.peppol.sbdh.spec12.ObjectFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of peppol-sbdh Show documentation
Show all versions of peppol-sbdh Show documentation
Library for reading and writing OASIS Standard Business Document Header (SBDH) documents conforming to the PEPPOL specifications
package com.helger.peppol.sbdh.spec12;
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.sbdh.spec12 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 _BinaryContent_QNAME = new QName("http://peppol.eu/xsd/ticc/envelope/1.0", "BinaryContent");
public static final QName _TextContent_QNAME = new QName("http://peppol.eu/xsd/ticc/envelope/1.0", "TextContent");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.helger.peppol.sbdh.spec12
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link BinaryContentType }
*
* @return
* the new instance of {@link BinaryContentType } The created BinaryContentType object and never null
.
*/
@Nonnull
public BinaryContentType createBinaryContentType() {
return new BinaryContentType();
}
/**
* Create an instance of {@link TextContentType }
*
* @return
* the new instance of {@link TextContentType } The created TextContentType object and never null
.
*/
@Nonnull
public TextContentType createTextContentType() {
return new TextContentType();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link BinaryContentType }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link BinaryContentType }{@code >} The created JAXBElement and never null
.
*/
@XmlElementDecl(namespace = "http://peppol.eu/xsd/ticc/envelope/1.0", name = "BinaryContent")
@Nonnull
public JAXBElement createBinaryContent(
@Nullable
final BinaryContentType value) {
return new JAXBElement<>(_BinaryContent_QNAME, BinaryContentType.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link TextContentType }{@code >}
*
* @param value
* Java instance representing xml element's value.
* @return
* the new instance of {@link JAXBElement }{@code <}{@link TextContentType }{@code >} The created JAXBElement and never null
.
*/
@XmlElementDecl(namespace = "http://peppol.eu/xsd/ticc/envelope/1.0", name = "TextContent")
@Nonnull
public JAXBElement createTextContent(
@Nullable
final TextContentType value) {
return new JAXBElement<>(_TextContent_QNAME, TextContentType.class, null, value);
}
}