org.milyn.edi.unedifact.d99a.INVOIC.SegmentGroup39 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99a.INVOIC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99a.common.ALCAllowanceOrCharge;
import java.util.List;
import org.milyn.edi.unedifact.d99a.common.ALIAdditionalInformation;
import org.milyn.edi.unedifact.d99a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d99a.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup39 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ALCAllowanceOrCharge aLCAllowanceOrCharge;
private List aLIAdditionalInformation;
private List dTMDateTimePeriod;
private FTXFreeText fTXFreeText;
private SegmentGroup40 segmentGroup40;
private SegmentGroup41 segmentGroup41;
private List segmentGroup42;
private SegmentGroup43 segmentGroup43;
private List segmentGroup44;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(aLCAllowanceOrCharge != null) {
nodeWriter.write("ALC");
nodeWriter.write(delimiters.getField());
aLCAllowanceOrCharge.write(nodeWriter, delimiters);
}
if(aLIAdditionalInformation != null && !aLIAdditionalInformation.isEmpty()) {
for(ALIAdditionalInformation aLIAdditionalInformationInst : aLIAdditionalInformation) {
nodeWriter.write("ALI");
nodeWriter.write(delimiters.getField());
aLIAdditionalInformationInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeText.write(nodeWriter, delimiters);
}
if(segmentGroup40 != null) {
segmentGroup40.write(nodeWriter, delimiters);
}
if(segmentGroup41 != null) {
segmentGroup41.write(nodeWriter, delimiters);
}
if(segmentGroup42 != null && !segmentGroup42.isEmpty()) {
for(SegmentGroup42 segmentGroup42Inst : segmentGroup42) {
segmentGroup42Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup43 != null) {
segmentGroup43.write(nodeWriter, delimiters);
}
if(segmentGroup44 != null && !segmentGroup44.isEmpty()) {
for(SegmentGroup44 segmentGroup44Inst : segmentGroup44) {
segmentGroup44Inst.write(nodeWriter, delimiters);
}
}
}
public ALCAllowanceOrCharge getALCAllowanceOrCharge() {
return aLCAllowanceOrCharge;
}
public SegmentGroup39 setALCAllowanceOrCharge(ALCAllowanceOrCharge aLCAllowanceOrCharge) {
this.aLCAllowanceOrCharge = aLCAllowanceOrCharge; return this;
}
public List getALIAdditionalInformation() {
return aLIAdditionalInformation;
}
public SegmentGroup39 setALIAdditionalInformation(List aLIAdditionalInformation) {
this.aLIAdditionalInformation = aLIAdditionalInformation; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup39 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public FTXFreeText getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup39 setFTXFreeText(FTXFreeText fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public SegmentGroup40 getSegmentGroup40() {
return segmentGroup40;
}
public SegmentGroup39 setSegmentGroup40(SegmentGroup40 segmentGroup40) {
this.segmentGroup40 = segmentGroup40; return this;
}
public SegmentGroup41 getSegmentGroup41() {
return segmentGroup41;
}
public SegmentGroup39 setSegmentGroup41(SegmentGroup41 segmentGroup41) {
this.segmentGroup41 = segmentGroup41; return this;
}
public List getSegmentGroup42() {
return segmentGroup42;
}
public SegmentGroup39 setSegmentGroup42(List segmentGroup42) {
this.segmentGroup42 = segmentGroup42; return this;
}
public SegmentGroup43 getSegmentGroup43() {
return segmentGroup43;
}
public SegmentGroup39 setSegmentGroup43(SegmentGroup43 segmentGroup43) {
this.segmentGroup43 = segmentGroup43; return this;
}
public List getSegmentGroup44() {
return segmentGroup44;
}
public SegmentGroup39 setSegmentGroup44(List segmentGroup44) {
this.segmentGroup44 = segmentGroup44; return this;
}
}