org.milyn.edi.unedifact.d05a.CONITT.SegmentGroup12 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.CONITT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.AllowanceOrCharge;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.AdditionalInformation;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup12 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private AllowanceOrCharge allowanceOrCharge;
private List additionalInformation;
private SegmentGroup13 segmentGroup13;
private SegmentGroup14 segmentGroup14;
private SegmentGroup15 segmentGroup15;
private SegmentGroup16 segmentGroup16;
private List segmentGroup17;
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(segmentGroup13 != null) {
segmentGroup13.write(nodeWriter, delimiters);
}
if(segmentGroup14 != null) {
segmentGroup14.write(nodeWriter, delimiters);
}
if(segmentGroup15 != null) {
segmentGroup15.write(nodeWriter, delimiters);
}
if(segmentGroup16 != null) {
segmentGroup16.write(nodeWriter, delimiters);
}
if(segmentGroup17 != null && !segmentGroup17.isEmpty()) {
for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
segmentGroup17Inst.write(nodeWriter, delimiters);
}
}
}
public AllowanceOrCharge getAllowanceOrCharge() {
return allowanceOrCharge;
}
public SegmentGroup12 setAllowanceOrCharge(AllowanceOrCharge allowanceOrCharge) {
this.allowanceOrCharge = allowanceOrCharge; return this;
}
public List getAdditionalInformation() {
return additionalInformation;
}
public SegmentGroup12 setAdditionalInformation(List additionalInformation) {
this.additionalInformation = additionalInformation; return this;
}
public SegmentGroup13 getSegmentGroup13() {
return segmentGroup13;
}
public SegmentGroup12 setSegmentGroup13(SegmentGroup13 segmentGroup13) {
this.segmentGroup13 = segmentGroup13; return this;
}
public SegmentGroup14 getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup12 setSegmentGroup14(SegmentGroup14 segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
public SegmentGroup15 getSegmentGroup15() {
return segmentGroup15;
}
public SegmentGroup12 setSegmentGroup15(SegmentGroup15 segmentGroup15) {
this.segmentGroup15 = segmentGroup15; return this;
}
public SegmentGroup16 getSegmentGroup16() {
return segmentGroup16;
}
public SegmentGroup12 setSegmentGroup16(SegmentGroup16 segmentGroup16) {
this.segmentGroup16 = segmentGroup16; return this;
}
public List getSegmentGroup17() {
return segmentGroup17;
}
public SegmentGroup12 setSegmentGroup17(List segmentGroup17) {
this.segmentGroup17 = segmentGroup17; return this;
}
}