org.milyn.edi.unedifact.d02a.IPPOAD.SegmentGroup18 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.IPPOAD;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.ItemDescription;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.Identity;
import org.milyn.edi.unedifact.d02a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d02a.common.PartyIdentification;
import org.milyn.edi.unedifact.d02a.common.QueryAndResponse;
import org.milyn.edi.unedifact.d02a.common.Reference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup18 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ItemDescription itemDescription;
private List identity;
private List dateTimePeriod;
private List partyIdentification;
private List queryAndResponse;
private List reference;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(itemDescription != null) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
itemDescription.write(nodeWriter, delimiters);
}
if(identity != null && !identity.isEmpty()) {
for(Identity identityInst : identity) {
nodeWriter.write("IDE");
nodeWriter.write(delimiters.getField());
identityInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(partyIdentification != null && !partyIdentification.isEmpty()) {
for(PartyIdentification partyIdentificationInst : partyIdentification) {
nodeWriter.write("PNA");
nodeWriter.write(delimiters.getField());
partyIdentificationInst.write(nodeWriter, delimiters);
}
}
if(queryAndResponse != null && !queryAndResponse.isEmpty()) {
for(QueryAndResponse queryAndResponseInst : queryAndResponse) {
nodeWriter.write("QRS");
nodeWriter.write(delimiters.getField());
queryAndResponseInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
}
public ItemDescription getItemDescription() {
return itemDescription;
}
public SegmentGroup18 setItemDescription(ItemDescription itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getIdentity() {
return identity;
}
public SegmentGroup18 setIdentity(List identity) {
this.identity = identity; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup18 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getPartyIdentification() {
return partyIdentification;
}
public SegmentGroup18 setPartyIdentification(List partyIdentification) {
this.partyIdentification = partyIdentification; return this;
}
public List getQueryAndResponse() {
return queryAndResponse;
}
public SegmentGroup18 setQueryAndResponse(List queryAndResponse) {
this.queryAndResponse = queryAndResponse; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup18 setReference(List reference) {
this.reference = reference; return this;
}
}