org.smooks.edifact.binding.d17a.Interchange Maven / Gradle / Ivy
/*-
* ========================LICENSE_START=================================
* d17a-edifact-binding
* %%
* Copyright (C) 2020 - 2024 Smooks
* %%
* Licensed under the terms of the Apache License Version 2.0, or
* the GNU Lesser General Public License version 3.0 or later.
*
* SPDX-License-Identifier: Apache-2.0 OR LGPL-3.0-or-later
*
* ======================================================================
*
* 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.
*
* ======================================================================
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* =========================LICENSE_END==================================
*/
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.11.12 at 09:05:05 AM UTC
//
package org.smooks.edifact.binding.d17a;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
import org.smooks.edifact.binding.service.UNA;
import org.smooks.edifact.binding.service.UNBInterchangeHeader;
import org.smooks.edifact.binding.service.UNEGroupTrailer;
import org.smooks.edifact.binding.service.UNGGroupHeader;
import org.smooks.edifact.binding.service.UNZInterchangeTrailer;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="UNA" type="{http://www.ibm.com/dfdl/edi/un/service/4.1}UNA" minOccurs="0"/>
* <element name="UNB" type="{http://www.ibm.com/dfdl/edi/un/service/4.1}UNB-InterchangeHeader"/>
* <choice>
* <element name="FunctionGroup" maxOccurs="unbounded">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="UNG" type="{http://www.ibm.com/dfdl/edi/un/service/4.1}UNG-GroupHeader"/>
* <element ref="{http://www.ibm.com/dfdl/edi/un/edifact/D17A}Message" maxOccurs="unbounded"/>
* <element name="UNE" type="{http://www.ibm.com/dfdl/edi/un/service/4.1}UNE-GroupTrailer"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element ref="{http://www.ibm.com/dfdl/edi/un/edifact/D17A}Message" maxOccurs="unbounded"/>
* </choice>
* <element name="UNZ" type="{http://www.ibm.com/dfdl/edi/un/service/4.1}UNZ-InterchangeTrailer"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"una",
"unb",
"functionGroup",
"message",
"unz"
})
@XmlRootElement(name = "Interchange")
public class Interchange {
@XmlElement(name = "UNA")
protected UNA una;
@XmlElement(name = "UNB", required = true)
protected UNBInterchangeHeader unb;
@XmlElement(name = "FunctionGroup")
protected List functionGroup;
@XmlElement(name = "Message", namespace = "http://www.ibm.com/dfdl/edi/un/edifact/D17A")
protected List message;
@XmlElement(name = "UNZ", required = true)
protected UNZInterchangeTrailer unz;
/**
* Gets the value of the una property.
*
* @return
* possible object is
* {@link UNA }
*
*/
public UNA getUNA() {
return una;
}
/**
* Sets the value of the una property.
*
* @param value
* allowed object is
* {@link UNA }
*
*/
public void setUNA(UNA value) {
this.una = value;
}
/**
* Gets the value of the unb property.
*
* @return
* possible object is
* {@link UNBInterchangeHeader }
*
*/
public UNBInterchangeHeader getUNB() {
return unb;
}
/**
* Sets the value of the unb property.
*
* @param value
* allowed object is
* {@link UNBInterchangeHeader }
*
*/
public void setUNB(UNBInterchangeHeader value) {
this.unb = value;
}
/**
* Gets the value of the functionGroup property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a set
method for the functionGroup property.
*
*
* For example, to add a new item, do as follows:
*
* getFunctionGroup().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Interchange.FunctionGroup }
*
*
*/
public List getFunctionGroup() {
if (functionGroup == null) {
functionGroup = new ArrayList();
}
return this.functionGroup;
}
/**
* Gets the value of the message property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a set
method for the message property.
*
*
* For example, to add a new item, do as follows:
*
* getMessage().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Message }
*
*
*/
public List getMessage() {
if (message == null) {
message = new ArrayList();
}
return this.message;
}
/**
* Gets the value of the unz property.
*
* @return
* possible object is
* {@link UNZInterchangeTrailer }
*
*/
public UNZInterchangeTrailer getUNZ() {
return unz;
}
/**
* Sets the value of the unz property.
*
* @param value
* allowed object is
* {@link UNZInterchangeTrailer }
*
*/
public void setUNZ(UNZInterchangeTrailer value) {
this.unz = value;
}
public Interchange withUNA(UNA value) {
setUNA(value);
return this;
}
public Interchange withUNB(UNBInterchangeHeader value) {
setUNB(value);
return this;
}
public Interchange withFunctionGroup(Interchange.FunctionGroup... values) {
if (values!= null) {
for (Interchange.FunctionGroup value: values) {
getFunctionGroup().add(value);
}
}
return this;
}
public Interchange withFunctionGroup(Collection values) {
if (values!= null) {
getFunctionGroup().addAll(values);
}
return this;
}
public Interchange withMessage(Message... values) {
if (values!= null) {
for (Message value: values) {
getMessage().add(value);
}
}
return this;
}
public Interchange withMessage(Collection values) {
if (values!= null) {
getMessage().addAll(values);
}
return this;
}
public Interchange withUNZ(UNZInterchangeTrailer value) {
setUNZ(value);
return this;
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="UNG" type="{http://www.ibm.com/dfdl/edi/un/service/4.1}UNG-GroupHeader"/>
* <element ref="{http://www.ibm.com/dfdl/edi/un/edifact/D17A}Message" maxOccurs="unbounded"/>
* <element name="UNE" type="{http://www.ibm.com/dfdl/edi/un/service/4.1}UNE-GroupTrailer"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"ung",
"message",
"une"
})
public static class FunctionGroup {
@XmlElement(name = "UNG", required = true)
protected UNGGroupHeader ung;
@XmlElement(name = "Message", namespace = "http://www.ibm.com/dfdl/edi/un/edifact/D17A", required = true)
protected List message;
@XmlElement(name = "UNE", required = true)
protected UNEGroupTrailer une;
/**
* Gets the value of the ung property.
*
* @return
* possible object is
* {@link UNGGroupHeader }
*
*/
public UNGGroupHeader getUNG() {
return ung;
}
/**
* Sets the value of the ung property.
*
* @param value
* allowed object is
* {@link UNGGroupHeader }
*
*/
public void setUNG(UNGGroupHeader value) {
this.ung = value;
}
/**
* Gets the value of the message property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a set
method for the message property.
*
*
* For example, to add a new item, do as follows:
*
* getMessage().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Message }
*
*
*/
public List getMessage() {
if (message == null) {
message = new ArrayList();
}
return this.message;
}
/**
* Gets the value of the une property.
*
* @return
* possible object is
* {@link UNEGroupTrailer }
*
*/
public UNEGroupTrailer getUNE() {
return une;
}
/**
* Sets the value of the une property.
*
* @param value
* allowed object is
* {@link UNEGroupTrailer }
*
*/
public void setUNE(UNEGroupTrailer value) {
this.une = value;
}
public Interchange.FunctionGroup withUNG(UNGGroupHeader value) {
setUNG(value);
return this;
}
public Interchange.FunctionGroup withMessage(Message... values) {
if (values!= null) {
for (Message value: values) {
getMessage().add(value);
}
}
return this;
}
public Interchange.FunctionGroup withMessage(Collection values) {
if (values!= null) {
getMessage().addAll(values);
}
return this;
}
public Interchange.FunctionGroup withUNE(UNEGroupTrailer value) {
setUNE(value);
return this;
}
}
}