org.milyn.edi.unedifact.d99b.CONITT.SegmentGroup24 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.CONITT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.Dimensions;
import org.milyn.edi.unedifact.d99b.common.AdditionalPriceInformation;
import org.milyn.edi.unedifact.d99b.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup24 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private Dimensions dimensions;
private AdditionalPriceInformation additionalPriceInformation;
private FreeText freeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(dimensions != null) {
nodeWriter.write("DIM");
nodeWriter.write(delimiters.getField());
dimensions.write(nodeWriter, delimiters);
}
if(additionalPriceInformation != null) {
nodeWriter.write("APR");
nodeWriter.write(delimiters.getField());
additionalPriceInformation.write(nodeWriter, delimiters);
}
if(freeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeText.write(nodeWriter, delimiters);
}
}
public Dimensions getDimensions() {
return dimensions;
}
public SegmentGroup24 setDimensions(Dimensions dimensions) {
this.dimensions = dimensions; return this;
}
public AdditionalPriceInformation getAdditionalPriceInformation() {
return additionalPriceInformation;
}
public SegmentGroup24 setAdditionalPriceInformation(AdditionalPriceInformation additionalPriceInformation) {
this.additionalPriceInformation = additionalPriceInformation; return this;
}
public FreeText getFreeText() {
return freeText;
}
public SegmentGroup24 setFreeText(FreeText freeText) {
this.freeText = freeText; return this;
}
}