org.milyn.edi.unedifact.d05a.MEDPRE.SegmentGroup9 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.MEDPRE;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.GEIProcessingInformation;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.IDEIdentity;
import org.milyn.edi.unedifact.d05a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d05a.common.PTYPriority;
import org.milyn.edi.unedifact.d05a.common.AGRAgreementIdentification;
import org.milyn.edi.unedifact.d05a.common.LANLanguage;
import org.milyn.edi.unedifact.d05a.common.STSStatus;
import org.milyn.edi.unedifact.d05a.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup9 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GEIProcessingInformation gEIProcessingInformation;
private List iDEIdentity;
private List dTMDateTimePeriod;
private PTYPriority pTYPriority;
private AGRAgreementIdentification aGRAgreementIdentification;
private LANLanguage lANLanguage;
private STSStatus sTSStatus;
private List fTXFreeText;
private List segmentGroup10;
private SegmentGroup11 segmentGroup11;
private List segmentGroup12;
private List segmentGroup14;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(gEIProcessingInformation != null) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
gEIProcessingInformation.write(nodeWriter, delimiters);
}
if(iDEIdentity != null && !iDEIdentity.isEmpty()) {
for(IDEIdentity iDEIdentityInst : iDEIdentity) {
nodeWriter.write("IDE");
nodeWriter.write(delimiters.getField());
iDEIdentityInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(pTYPriority != null) {
nodeWriter.write("PTY");
nodeWriter.write(delimiters.getField());
pTYPriority.write(nodeWriter, delimiters);
}
if(aGRAgreementIdentification != null) {
nodeWriter.write("AGR");
nodeWriter.write(delimiters.getField());
aGRAgreementIdentification.write(nodeWriter, delimiters);
}
if(lANLanguage != null) {
nodeWriter.write("LAN");
nodeWriter.write(delimiters.getField());
lANLanguage.write(nodeWriter, delimiters);
}
if(sTSStatus != null) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
sTSStatus.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup11 != null) {
segmentGroup11.write(nodeWriter, delimiters);
}
if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
segmentGroup12Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
}
public GEIProcessingInformation getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup9 setGEIProcessingInformation(GEIProcessingInformation gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; return this;
}
public List getIDEIdentity() {
return iDEIdentity;
}
public SegmentGroup9 setIDEIdentity(List iDEIdentity) {
this.iDEIdentity = iDEIdentity; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup9 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public PTYPriority getPTYPriority() {
return pTYPriority;
}
public SegmentGroup9 setPTYPriority(PTYPriority pTYPriority) {
this.pTYPriority = pTYPriority; return this;
}
public AGRAgreementIdentification getAGRAgreementIdentification() {
return aGRAgreementIdentification;
}
public SegmentGroup9 setAGRAgreementIdentification(AGRAgreementIdentification aGRAgreementIdentification) {
this.aGRAgreementIdentification = aGRAgreementIdentification; return this;
}
public LANLanguage getLANLanguage() {
return lANLanguage;
}
public SegmentGroup9 setLANLanguage(LANLanguage lANLanguage) {
this.lANLanguage = lANLanguage; return this;
}
public STSStatus getSTSStatus() {
return sTSStatus;
}
public SegmentGroup9 setSTSStatus(STSStatus sTSStatus) {
this.sTSStatus = sTSStatus; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup9 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup9 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public SegmentGroup11 getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup9 setSegmentGroup11(SegmentGroup11 segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public List getSegmentGroup12() {
return segmentGroup12;
}
public SegmentGroup9 setSegmentGroup12(List segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup9 setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
}