org.milyn.edi.unedifact.d05a.CONEST.SegmentGroup12 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.CONEST;
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 org.milyn.edi.unedifact.d05a.common.Reference;
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d05a.common.FreeText;
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 List reference;
private List dateTimePeriod;
private List freeText;
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(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.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 List getReference() {
return reference;
}
public SegmentGroup12 setReference(List reference) {
this.reference = reference; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup12 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup12 setFreeText(List freeText) {
this.freeText = freeText; 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;
}
}