org.smooks.edifact.binding.d17a.ADRAddress 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.XmlType;
/**
* Java class for ADR-Address complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ADR-Address">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="C817" type="{http://www.ibm.com/dfdl/edi/un/edifact/D17A}C817-AddressUsage" minOccurs="0"/>
* <element name="C090" type="{http://www.ibm.com/dfdl/edi/un/edifact/D17A}C090-AddressDetails" minOccurs="0"/>
* <element name="E3164" type="{http://www.ibm.com/dfdl/edi/un/edifact/D17A}E3164-CityName" minOccurs="0"/>
* <element name="E3251" type="{http://www.ibm.com/dfdl/edi/un/edifact/D17A}E3251-PostalIdentificationCode" minOccurs="0"/>
* <element name="E3207" type="{http://www.ibm.com/dfdl/edi/un/edifact/D17A}E3207-CountryIdentifier" minOccurs="0"/>
* <sequence>
* <element name="C819" type="{http://www.ibm.com/dfdl/edi/un/edifact/D17A}C819-CountrySubdivisionDetails" maxOccurs="5" minOccurs="0"/>
* </sequence>
* <sequence>
* <element name="C517" type="{http://www.ibm.com/dfdl/edi/un/edifact/D17A}C517-LocationIdentification" maxOccurs="5" minOccurs="0"/>
* </sequence>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ADR-Address", propOrder = {
"c817",
"c090",
"e3164",
"e3251",
"e3207",
"c819",
"c517"
})
public class ADRAddress {
@XmlElement(name = "C817")
protected C817AddressUsage c817;
@XmlElement(name = "C090")
protected C090AddressDetails c090;
@XmlElement(name = "E3164")
protected String e3164;
@XmlElement(name = "E3251")
protected String e3251;
@XmlElement(name = "E3207")
protected String e3207;
@XmlElement(name = "C819", nillable = true)
protected List c819;
@XmlElement(name = "C517", nillable = true)
protected List c517;
/**
* Gets the value of the c817 property.
*
* @return
* possible object is
* {@link C817AddressUsage }
*
*/
public C817AddressUsage getC817() {
return c817;
}
/**
* Sets the value of the c817 property.
*
* @param value
* allowed object is
* {@link C817AddressUsage }
*
*/
public void setC817(C817AddressUsage value) {
this.c817 = value;
}
/**
* Gets the value of the c090 property.
*
* @return
* possible object is
* {@link C090AddressDetails }
*
*/
public C090AddressDetails getC090() {
return c090;
}
/**
* Sets the value of the c090 property.
*
* @param value
* allowed object is
* {@link C090AddressDetails }
*
*/
public void setC090(C090AddressDetails value) {
this.c090 = value;
}
/**
* Gets the value of the e3164 property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getE3164() {
return e3164;
}
/**
* Sets the value of the e3164 property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setE3164(String value) {
this.e3164 = value;
}
/**
* Gets the value of the e3251 property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getE3251() {
return e3251;
}
/**
* Sets the value of the e3251 property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setE3251(String value) {
this.e3251 = value;
}
/**
* Gets the value of the e3207 property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getE3207() {
return e3207;
}
/**
* Sets the value of the e3207 property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setE3207(String value) {
this.e3207 = value;
}
/**
* Gets the value of the c819 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 c819 property.
*
*
* For example, to add a new item, do as follows:
*
* getC819().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link C819CountrySubdivisionDetails }
*
*
*/
public List getC819() {
if (c819 == null) {
c819 = new ArrayList();
}
return this.c819;
}
/**
* Gets the value of the c517 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 c517 property.
*
*
* For example, to add a new item, do as follows:
*
* getC517().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link C517LocationIdentification }
*
*
*/
public List getC517() {
if (c517 == null) {
c517 = new ArrayList();
}
return this.c517;
}
public ADRAddress withC817(C817AddressUsage value) {
setC817(value);
return this;
}
public ADRAddress withC090(C090AddressDetails value) {
setC090(value);
return this;
}
public ADRAddress withE3164(String value) {
setE3164(value);
return this;
}
public ADRAddress withE3251(String value) {
setE3251(value);
return this;
}
public ADRAddress withE3207(String value) {
setE3207(value);
return this;
}
public ADRAddress withC819(C819CountrySubdivisionDetails... values) {
if (values!= null) {
for (C819CountrySubdivisionDetails value: values) {
getC819().add(value);
}
}
return this;
}
public ADRAddress withC819(Collection values) {
if (values!= null) {
getC819().addAll(values);
}
return this;
}
public ADRAddress withC517(C517LocationIdentification... values) {
if (values!= null) {
for (C517LocationIdentification value: values) {
getC517().add(value);
}
}
return this;
}
public ADRAddress withC517(Collection values) {
if (values!= null) {
getC517().addAll(values);
}
return this;
}
}