![JAR search and dependency download from the Maven repository](/logo.png)
org.milyn.edi.unedifact.d05a.MEDRUC.SegmentGroup6 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.MEDRUC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.PartyIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.Address;
import org.milyn.edi.unedifact.d05a.common.Status;
import org.milyn.edi.unedifact.d05a.common.RequirementsAndConditions;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup6 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PartyIdentification partyIdentification;
private List address;
private Status status;
private List requirementsAndConditions;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(partyIdentification != null) {
nodeWriter.write("PNA");
nodeWriter.write(delimiters.getField());
partyIdentification.write(nodeWriter, delimiters);
}
if(address != null && !address.isEmpty()) {
for(Address addressInst : address) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
addressInst.write(nodeWriter, delimiters);
}
}
if(status != null) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
status.write(nodeWriter, delimiters);
}
if(requirementsAndConditions != null && !requirementsAndConditions.isEmpty()) {
for(RequirementsAndConditions requirementsAndConditionsInst : requirementsAndConditions) {
nodeWriter.write("RCS");
nodeWriter.write(delimiters.getField());
requirementsAndConditionsInst.write(nodeWriter, delimiters);
}
}
}
public PartyIdentification getPartyIdentification() {
return partyIdentification;
}
public SegmentGroup6 setPartyIdentification(PartyIdentification partyIdentification) {
this.partyIdentification = partyIdentification; return this;
}
public List getAddress() {
return address;
}
public SegmentGroup6 setAddress(List address) {
this.address = address; return this;
}
public Status getStatus() {
return status;
}
public SegmentGroup6 setStatus(Status status) {
this.status = status; return this;
}
public List getRequirementsAndConditions() {
return requirementsAndConditions;
}
public SegmentGroup6 setRequirementsAndConditions(List requirementsAndConditions) {
this.requirementsAndConditions = requirementsAndConditions; return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy