org.milyn.edi.unedifact.d96a.PRICAT.SegmentGroup10 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.PRICAT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.AllowanceOrCharge;
import java.util.List;
import org.milyn.edi.unedifact.d96a.common.AdditionalInformation;
import org.milyn.edi.unedifact.d96a.common.DateTimePeriod;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup10 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private AllowanceOrCharge allowanceOrCharge;
private List additionalInformation;
private List dateTimePeriod;
private SegmentGroup11 segmentGroup11;
private SegmentGroup12 segmentGroup12;
private List segmentGroup13;
private SegmentGroup14 segmentGroup14;
private List segmentGroup15;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(allowanceOrCharge != null) {
nodeWriter.write("ALC");
nodeWriter.write(delimiters.getField());
allowanceOrCharge.write(nodeWriter, delimiters);
}
if(additionalInformation != null && !additionalInformation.isEmpty()) {
for(AdditionalInformation additionalInformationInst : additionalInformation) {
nodeWriter.write("ALI");
nodeWriter.write(delimiters.getField());
additionalInformationInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup11 != null) {
segmentGroup11.write(nodeWriter, delimiters);
}
if(segmentGroup12 != null) {
segmentGroup12.write(nodeWriter, delimiters);
}
if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
segmentGroup13Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null) {
segmentGroup14.write(nodeWriter, delimiters);
}
if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
segmentGroup15Inst.write(nodeWriter, delimiters);
}
}
}
public AllowanceOrCharge getAllowanceOrCharge() {
return allowanceOrCharge;
}
public SegmentGroup10 setAllowanceOrCharge(AllowanceOrCharge allowanceOrCharge) {
this.allowanceOrCharge = allowanceOrCharge; return this;
}
public List getAdditionalInformation() {
return additionalInformation;
}
public SegmentGroup10 setAdditionalInformation(List additionalInformation) {
this.additionalInformation = additionalInformation; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup10 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public SegmentGroup11 getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup10 setSegmentGroup11(SegmentGroup11 segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public SegmentGroup12 getSegmentGroup12() {
return segmentGroup12;
}
public SegmentGroup10 setSegmentGroup12(SegmentGroup12 segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
public List getSegmentGroup13() {
return segmentGroup13;
}
public SegmentGroup10 setSegmentGroup13(List segmentGroup13) {
this.segmentGroup13 = segmentGroup13; return this;
}
public SegmentGroup14 getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup10 setSegmentGroup14(SegmentGroup14 segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
public List getSegmentGroup15() {
return segmentGroup15;
}
public SegmentGroup10 setSegmentGroup15(List segmentGroup15) {
this.segmentGroup15 = segmentGroup15; return this;
}
}