org.milyn.edi.unedifact.d96a.CONPVA.SegmentGroup27 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.CONPVA;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.AllowanceOrCharge;
import org.milyn.edi.unedifact.d96a.common.AdditionalInformation;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup27 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private AllowanceOrCharge allowanceOrCharge;
private AdditionalInformation additionalInformation;
private SegmentGroup28 segmentGroup28;
private SegmentGroup29 segmentGroup29;
private SegmentGroup30 segmentGroup30;
private SegmentGroup31 segmentGroup31;
private SegmentGroup32 segmentGroup32;
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) {
nodeWriter.write("ALI");
nodeWriter.write(delimiters.getField());
additionalInformation.write(nodeWriter, delimiters);
}
if(segmentGroup28 != null) {
segmentGroup28.write(nodeWriter, delimiters);
}
if(segmentGroup29 != null) {
segmentGroup29.write(nodeWriter, delimiters);
}
if(segmentGroup30 != null) {
segmentGroup30.write(nodeWriter, delimiters);
}
if(segmentGroup31 != null) {
segmentGroup31.write(nodeWriter, delimiters);
}
if(segmentGroup32 != null) {
segmentGroup32.write(nodeWriter, delimiters);
}
}
public AllowanceOrCharge getAllowanceOrCharge() {
return allowanceOrCharge;
}
public SegmentGroup27 setAllowanceOrCharge(AllowanceOrCharge allowanceOrCharge) {
this.allowanceOrCharge = allowanceOrCharge; return this;
}
public AdditionalInformation getAdditionalInformation() {
return additionalInformation;
}
public SegmentGroup27 setAdditionalInformation(AdditionalInformation additionalInformation) {
this.additionalInformation = additionalInformation; return this;
}
public SegmentGroup28 getSegmentGroup28() {
return segmentGroup28;
}
public SegmentGroup27 setSegmentGroup28(SegmentGroup28 segmentGroup28) {
this.segmentGroup28 = segmentGroup28; return this;
}
public SegmentGroup29 getSegmentGroup29() {
return segmentGroup29;
}
public SegmentGroup27 setSegmentGroup29(SegmentGroup29 segmentGroup29) {
this.segmentGroup29 = segmentGroup29; return this;
}
public SegmentGroup30 getSegmentGroup30() {
return segmentGroup30;
}
public SegmentGroup27 setSegmentGroup30(SegmentGroup30 segmentGroup30) {
this.segmentGroup30 = segmentGroup30; return this;
}
public SegmentGroup31 getSegmentGroup31() {
return segmentGroup31;
}
public SegmentGroup27 setSegmentGroup31(SegmentGroup31 segmentGroup31) {
this.segmentGroup31 = segmentGroup31; return this;
}
public SegmentGroup32 getSegmentGroup32() {
return segmentGroup32;
}
public SegmentGroup27 setSegmentGroup32(SegmentGroup32 segmentGroup32) {
this.segmentGroup32 = segmentGroup32; return this;
}
}