org.milyn.edi.unedifact.d99a.DIRDEF.SegmentGroup4 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99a.DIRDEF;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99a.common.SGUSegmentUsageDetails;
import java.util.List;
import org.milyn.edi.unedifact.d99a.common.ATTAttribute;
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 SegmentGroup4 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private SGUSegmentUsageDetails sGUSegmentUsageDetails;
private List aTTAttribute;
private List fTXFreeText;
private SegmentGroup5 segmentGroup5;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(sGUSegmentUsageDetails != null) {
nodeWriter.write("SGU");
nodeWriter.write(delimiters.getField());
sGUSegmentUsageDetails.write(nodeWriter, delimiters);
}
if(aTTAttribute != null && !aTTAttribute.isEmpty()) {
for(ATTAttribute aTTAttributeInst : aTTAttribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
aTTAttributeInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup5 != null) {
segmentGroup5.write(nodeWriter, delimiters);
}
}
public SGUSegmentUsageDetails getSGUSegmentUsageDetails() {
return sGUSegmentUsageDetails;
}
public SegmentGroup4 setSGUSegmentUsageDetails(SGUSegmentUsageDetails sGUSegmentUsageDetails) {
this.sGUSegmentUsageDetails = sGUSegmentUsageDetails; return this;
}
public List getATTAttribute() {
return aTTAttribute;
}
public SegmentGroup4 setATTAttribute(List aTTAttribute) {
this.aTTAttribute = aTTAttribute; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup4 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public SegmentGroup5 getSegmentGroup5() {
return segmentGroup5;
}
public SegmentGroup4 setSegmentGroup5(SegmentGroup5 segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
}