All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.smooks.edifact.binding.d13b.CASRES Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
/*-
 * ========================LICENSE_START=================================
 * d13b-edifact-binding
 * %%
 * Copyright (C) 2020 - 2025 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: 2025.01.04 at 11:54:49 AM UTC 
//


package org.smooks.edifact.binding.d13b;

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.XmlType;


/**
 * 

Java class for CASRES complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="CASRES">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <sequence>
 *           <element name="BGM" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}BGM-BeginningOfMessage"/>
 *           <element name="DTM" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}DTM-DateTimePeriod" maxOccurs="9"/>
 *           <element name="ERC" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}ERC-ApplicationErrorInformation" maxOccurs="9" minOccurs="0"/>
 *           <element name="LOC" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}LOC-PlaceLocationIdentification" maxOccurs="9" minOccurs="0"/>
 *           <element name="RFF" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}RFF-Reference" maxOccurs="9" minOccurs="0"/>
 *           <element name="MOA" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}MOA-MonetaryAmount" maxOccurs="99" minOccurs="0"/>
 *           <element name="FTX" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}FTX-FreeText" maxOccurs="9" minOccurs="0"/>
 *         </sequence>
 *         <element name="SegGrp-1" maxOccurs="99" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <sequence>
 *                     <element name="NAD" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}NAD-NameAndAddress"/>
 *                     <element name="SEQ" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}SEQ-SequenceDetails" minOccurs="0"/>
 *                     <element name="FTX" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}FTX-FreeText" maxOccurs="9" minOccurs="0"/>
 *                   </sequence>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="SegGrp-2" maxOccurs="99" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <sequence>
 *                     <element name="DOC" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}DOC-DocumentMessageDetails"/>
 *                     <element name="GIR" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}GIR-RelatedIdentificationNumbers" maxOccurs="99" minOccurs="0"/>
 *                     <element name="PYT" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}PYT-PaymentTerms" minOccurs="0"/>
 *                     <element name="DTM" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}DTM-DateTimePeriod" maxOccurs="9" minOccurs="0"/>
 *                     <element name="MOA" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}MOA-MonetaryAmount" maxOccurs="99" minOccurs="0"/>
 *                     <element name="FTX" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}FTX-FreeText" maxOccurs="9" minOccurs="0"/>
 *                   </sequence>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CASRES", propOrder = { "bgm", "dtm", "erc", "loc", "rff", "moa", "ftx", "segGrp1", "segGrp2" }) public class CASRES { @XmlElement(name = "BGM", required = true) protected BGMBeginningOfMessage bgm; @XmlElement(name = "DTM", required = true) protected List dtm; @XmlElement(name = "ERC") protected List erc; @XmlElement(name = "LOC") protected List loc; @XmlElement(name = "RFF") protected List rff; @XmlElement(name = "MOA") protected List moa; @XmlElement(name = "FTX") protected List ftx; @XmlElement(name = "SegGrp-1") protected List segGrp1; @XmlElement(name = "SegGrp-2") protected List segGrp2; /** * Gets the value of the bgm property. * * @return * possible object is * {@link BGMBeginningOfMessage } * */ public BGMBeginningOfMessage getBGM() { return bgm; } /** * Sets the value of the bgm property. * * @param value * allowed object is * {@link BGMBeginningOfMessage } * */ public void setBGM(BGMBeginningOfMessage value) { this.bgm = value; } /** * Gets the value of the dtm 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 dtm property. * *

* For example, to add a new item, do as follows: *

     *    getDTM().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DTMDateTimePeriod } * * */ public List getDTM() { if (dtm == null) { dtm = new ArrayList(); } return this.dtm; } /** * Gets the value of the erc 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 erc property. * *

* For example, to add a new item, do as follows: *

     *    getERC().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ERCApplicationErrorInformation } * * */ public List getERC() { if (erc == null) { erc = new ArrayList(); } return this.erc; } /** * Gets the value of the loc 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 loc property. * *

* For example, to add a new item, do as follows: *

     *    getLOC().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link LOCPlaceLocationIdentification } * * */ public List getLOC() { if (loc == null) { loc = new ArrayList(); } return this.loc; } /** * Gets the value of the rff 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 rff property. * *

* For example, to add a new item, do as follows: *

     *    getRFF().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link RFFReference } * * */ public List getRFF() { if (rff == null) { rff = new ArrayList(); } return this.rff; } /** * Gets the value of the moa 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 moa property. * *

* For example, to add a new item, do as follows: *

     *    getMOA().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link MOAMonetaryAmount } * * */ public List getMOA() { if (moa == null) { moa = new ArrayList(); } return this.moa; } /** * Gets the value of the ftx 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 ftx property. * *

* For example, to add a new item, do as follows: *

     *    getFTX().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link FTXFreeText } * * */ public List getFTX() { if (ftx == null) { ftx = new ArrayList(); } return this.ftx; } /** * Gets the value of the segGrp1 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 segGrp1 property. * *

* For example, to add a new item, do as follows: *

     *    getSegGrp1().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CASRES.SegGrp1 } * * */ public List getSegGrp1() { if (segGrp1 == null) { segGrp1 = new ArrayList(); } return this.segGrp1; } /** * Gets the value of the segGrp2 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 segGrp2 property. * *

* For example, to add a new item, do as follows: *

     *    getSegGrp2().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CASRES.SegGrp2 } * * */ public List getSegGrp2() { if (segGrp2 == null) { segGrp2 = new ArrayList(); } return this.segGrp2; } public CASRES withBGM(BGMBeginningOfMessage value) { setBGM(value); return this; } public CASRES withDTM(DTMDateTimePeriod... values) { if (values!= null) { for (DTMDateTimePeriod value: values) { getDTM().add(value); } } return this; } public CASRES withDTM(Collection values) { if (values!= null) { getDTM().addAll(values); } return this; } public CASRES withERC(ERCApplicationErrorInformation... values) { if (values!= null) { for (ERCApplicationErrorInformation value: values) { getERC().add(value); } } return this; } public CASRES withERC(Collection values) { if (values!= null) { getERC().addAll(values); } return this; } public CASRES withLOC(LOCPlaceLocationIdentification... values) { if (values!= null) { for (LOCPlaceLocationIdentification value: values) { getLOC().add(value); } } return this; } public CASRES withLOC(Collection values) { if (values!= null) { getLOC().addAll(values); } return this; } public CASRES withRFF(RFFReference... values) { if (values!= null) { for (RFFReference value: values) { getRFF().add(value); } } return this; } public CASRES withRFF(Collection values) { if (values!= null) { getRFF().addAll(values); } return this; } public CASRES withMOA(MOAMonetaryAmount... values) { if (values!= null) { for (MOAMonetaryAmount value: values) { getMOA().add(value); } } return this; } public CASRES withMOA(Collection values) { if (values!= null) { getMOA().addAll(values); } return this; } public CASRES withFTX(FTXFreeText... values) { if (values!= null) { for (FTXFreeText value: values) { getFTX().add(value); } } return this; } public CASRES withFTX(Collection values) { if (values!= null) { getFTX().addAll(values); } return this; } public CASRES withSegGrp1(CASRES.SegGrp1 ... values) { if (values!= null) { for (CASRES.SegGrp1 value: values) { getSegGrp1().add(value); } } return this; } public CASRES withSegGrp1(Collection values) { if (values!= null) { getSegGrp1().addAll(values); } return this; } public CASRES withSegGrp2(CASRES.SegGrp2 ... values) { if (values!= null) { for (CASRES.SegGrp2 value: values) { getSegGrp2().add(value); } } return this; } public CASRES withSegGrp2(Collection values) { if (values!= null) { getSegGrp2().addAll(values); } 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>
     *         <sequence>
     *           <element name="NAD" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}NAD-NameAndAddress"/>
     *           <element name="SEQ" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}SEQ-SequenceDetails" minOccurs="0"/>
     *           <element name="FTX" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}FTX-FreeText" maxOccurs="9" minOccurs="0"/>
     *         </sequence>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "nad", "seq", "ftx" }) public static class SegGrp1 { @XmlElement(name = "NAD", required = true) protected NADNameAndAddress nad; @XmlElement(name = "SEQ") protected SEQSequenceDetails seq; @XmlElement(name = "FTX") protected List ftx; /** * Gets the value of the nad property. * * @return * possible object is * {@link NADNameAndAddress } * */ public NADNameAndAddress getNAD() { return nad; } /** * Sets the value of the nad property. * * @param value * allowed object is * {@link NADNameAndAddress } * */ public void setNAD(NADNameAndAddress value) { this.nad = value; } /** * Gets the value of the seq property. * * @return * possible object is * {@link SEQSequenceDetails } * */ public SEQSequenceDetails getSEQ() { return seq; } /** * Sets the value of the seq property. * * @param value * allowed object is * {@link SEQSequenceDetails } * */ public void setSEQ(SEQSequenceDetails value) { this.seq = value; } /** * Gets the value of the ftx 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 ftx property. * *

* For example, to add a new item, do as follows: *

         *    getFTX().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link FTXFreeText } * * */ public List getFTX() { if (ftx == null) { ftx = new ArrayList(); } return this.ftx; } public CASRES.SegGrp1 withNAD(NADNameAndAddress value) { setNAD(value); return this; } public CASRES.SegGrp1 withSEQ(SEQSequenceDetails value) { setSEQ(value); return this; } public CASRES.SegGrp1 withFTX(FTXFreeText... values) { if (values!= null) { for (FTXFreeText value: values) { getFTX().add(value); } } return this; } public CASRES.SegGrp1 withFTX(Collection values) { if (values!= null) { getFTX().addAll(values); } 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>
     *         <sequence>
     *           <element name="DOC" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}DOC-DocumentMessageDetails"/>
     *           <element name="GIR" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}GIR-RelatedIdentificationNumbers" maxOccurs="99" minOccurs="0"/>
     *           <element name="PYT" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}PYT-PaymentTerms" minOccurs="0"/>
     *           <element name="DTM" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}DTM-DateTimePeriod" maxOccurs="9" minOccurs="0"/>
     *           <element name="MOA" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}MOA-MonetaryAmount" maxOccurs="99" minOccurs="0"/>
     *           <element name="FTX" type="{http://www.ibm.com/dfdl/edi/un/edifact/D13B}FTX-FreeText" maxOccurs="9" minOccurs="0"/>
     *         </sequence>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "doc", "gir", "pyt", "dtm", "moa", "ftx" }) public static class SegGrp2 { @XmlElement(name = "DOC", required = true) protected DOCDocumentMessageDetails doc; @XmlElement(name = "GIR") protected List gir; @XmlElement(name = "PYT") protected PYTPaymentTerms pyt; @XmlElement(name = "DTM") protected List dtm; @XmlElement(name = "MOA") protected List moa; @XmlElement(name = "FTX") protected List ftx; /** * Gets the value of the doc property. * * @return * possible object is * {@link DOCDocumentMessageDetails } * */ public DOCDocumentMessageDetails getDOC() { return doc; } /** * Sets the value of the doc property. * * @param value * allowed object is * {@link DOCDocumentMessageDetails } * */ public void setDOC(DOCDocumentMessageDetails value) { this.doc = value; } /** * Gets the value of the gir 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 gir property. * *

* For example, to add a new item, do as follows: *

         *    getGIR().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link GIRRelatedIdentificationNumbers } * * */ public List getGIR() { if (gir == null) { gir = new ArrayList(); } return this.gir; } /** * Gets the value of the pyt property. * * @return * possible object is * {@link PYTPaymentTerms } * */ public PYTPaymentTerms getPYT() { return pyt; } /** * Sets the value of the pyt property. * * @param value * allowed object is * {@link PYTPaymentTerms } * */ public void setPYT(PYTPaymentTerms value) { this.pyt = value; } /** * Gets the value of the dtm 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 dtm property. * *

* For example, to add a new item, do as follows: *

         *    getDTM().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DTMDateTimePeriod } * * */ public List getDTM() { if (dtm == null) { dtm = new ArrayList(); } return this.dtm; } /** * Gets the value of the moa 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 moa property. * *

* For example, to add a new item, do as follows: *

         *    getMOA().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link MOAMonetaryAmount } * * */ public List getMOA() { if (moa == null) { moa = new ArrayList(); } return this.moa; } /** * Gets the value of the ftx 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 ftx property. * *

* For example, to add a new item, do as follows: *

         *    getFTX().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link FTXFreeText } * * */ public List getFTX() { if (ftx == null) { ftx = new ArrayList(); } return this.ftx; } public CASRES.SegGrp2 withDOC(DOCDocumentMessageDetails value) { setDOC(value); return this; } public CASRES.SegGrp2 withGIR(GIRRelatedIdentificationNumbers... values) { if (values!= null) { for (GIRRelatedIdentificationNumbers value: values) { getGIR().add(value); } } return this; } public CASRES.SegGrp2 withGIR(Collection values) { if (values!= null) { getGIR().addAll(values); } return this; } public CASRES.SegGrp2 withPYT(PYTPaymentTerms value) { setPYT(value); return this; } public CASRES.SegGrp2 withDTM(DTMDateTimePeriod... values) { if (values!= null) { for (DTMDateTimePeriod value: values) { getDTM().add(value); } } return this; } public CASRES.SegGrp2 withDTM(Collection values) { if (values!= null) { getDTM().addAll(values); } return this; } public CASRES.SegGrp2 withMOA(MOAMonetaryAmount... values) { if (values!= null) { for (MOAMonetaryAmount value: values) { getMOA().add(value); } } return this; } public CASRES.SegGrp2 withMOA(Collection values) { if (values!= null) { getMOA().addAll(values); } return this; } public CASRES.SegGrp2 withFTX(FTXFreeText... values) { if (values!= null) { for (FTXFreeText value: values) { getFTX().add(value); } } return this; } public CASRES.SegGrp2 withFTX(Collection values) { if (values!= null) { getFTX().addAll(values); } return this; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy