org.milyn.edi.unedifact.d01a.DMSTAT.SegmentGroup4 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d01a.DMSTAT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d01a.common.IRQInformationRequired;
import org.milyn.edi.unedifact.d01a.common.RFFReference;
import java.util.List;
import org.milyn.edi.unedifact.d01a.common.PNAPartyIdentification;
import org.milyn.edi.unedifact.d01a.common.DTMDateTimePeriod;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup4 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private IRQInformationRequired iRQInformationRequired;
private RFFReference rFFReference;
private List pNAPartyIdentification;
private DTMDateTimePeriod dTMDateTimePeriod;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(iRQInformationRequired != null) {
nodeWriter.write("IRQ");
nodeWriter.write(delimiters.getField());
iRQInformationRequired.write(nodeWriter, delimiters);
}
if(rFFReference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReference.write(nodeWriter, delimiters);
}
if(pNAPartyIdentification != null && !pNAPartyIdentification.isEmpty()) {
for(PNAPartyIdentification pNAPartyIdentificationInst : pNAPartyIdentification) {
nodeWriter.write("PNA");
nodeWriter.write(delimiters.getField());
pNAPartyIdentificationInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriod.write(nodeWriter, delimiters);
}
}
public IRQInformationRequired getIRQInformationRequired() {
return iRQInformationRequired;
}
public SegmentGroup4 setIRQInformationRequired(IRQInformationRequired iRQInformationRequired) {
this.iRQInformationRequired = iRQInformationRequired; return this;
}
public RFFReference getRFFReference() {
return rFFReference;
}
public SegmentGroup4 setRFFReference(RFFReference rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getPNAPartyIdentification() {
return pNAPartyIdentification;
}
public SegmentGroup4 setPNAPartyIdentification(List pNAPartyIdentification) {
this.pNAPartyIdentification = pNAPartyIdentification; return this;
}
public DTMDateTimePeriod getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup4 setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
}